SG90 Driver. More...
#include <unistd.h>
#include <stdint.h>
#include <stddef.h>
#include <ti/drivers/PWM.h>
#include "ti_drivers_config.h"
Go to the source code of this file.
Macros | |
#define | SERVO_MIN 12000 |
#define | SERVO_MAX 24000 |
Functions | |
void | SG90_init (uint_least8_t index, PWM_Handle *motorHandle) |
SG90 Initialize. More... | |
void | SG90_setDuty (PWM_Handle motor, uint32_t duty) |
SG90 set duty. More... | |
void | SG90_start (PWM_Handle motorHandle) |
SG90 start. More... | |
SG90 Driver.
#define SERVO_MAX 24000 |
Servo Max Value
#define SERVO_MIN 12000 |
Servo Min Value
void SG90_init | ( | uint_least8_t | index, |
PWM_Handle * | motorHandle | ||
) |
SG90 Initialize.
Detailed description starts here
index | SG90 index value |
motorHandle | PWM_handle reference |
void SG90_setDuty | ( | PWM_Handle | motor, |
uint32_t | duty | ||
) |
SG90 set duty.
Detailed description starts here
motor | PWM_Handle value |
duty | motor duty value |
void SG90_start | ( | PWM_Handle | motorHandle | ) |
SG90 start.
Detailed description starts here
motor | PWM_Handle value |