IoT Drivers  v3.3.0 (S2022)
Engineering in Software Technology
Basic driver functions

Commonly used functions. Here you you will find the functions you normally will need. More...

Collaboration diagram for Basic driver functions:

Functions

void rc_servo_setPosition (uint8_t servoNo, int8_t percent)
 Turn the RC-Servo to the specified position. More...
 

Detailed Description

Commonly used functions. Here you you will find the functions you normally will need.

Function Documentation

◆ rc_servo_setPosition()

void rc_servo_setPosition ( uint8_t  servoNo,
int8_t  percent 
)

Turn the RC-Servo to the specified position.

Percent Servo Position
-100 Fully to the left
0 Middle position
100 Fully to the right

Percents in between will set the servo accordantly to the percentage.

Parameters
[in]servoNoThe servo to set the position for (0:J14 (Servo#0) 1:J13 (Servo#1))
[in]percentThe position to set the servo to [-100 .. 100]