IPIA Senior Project V2.0
Spring-Fall 2020
Loading...
Searching...
No Matches
SG90.h
Go to the documentation of this file.
1
13#ifndef SG90_H_
14#define SG90_H_
15#include <unistd.h>
16#include <stdint.h>
17#include <stddef.h>
18#include <ti/drivers/PWM.h>
19#include "ti_drivers_config.h"
20/*SERVO LIMITS*/
21#define SERVO_MIN 12000
22#define SERVO_MAX 24000
23/*Initialize S90 Driver*/
24
25
33void SG90_init(uint_least8_t index, PWM_Handle *motorHandle);
34
35
43void SG90_setDuty(PWM_Handle motor, uint32_t duty);
44
45
52void SG90_start(PWM_Handle motorHandle);
53#endif /* SG90_H_ */
void SG90_start(PWM_Handle motorHandle)
SG90 start.
Definition: SG90.c:42
void SG90_setDuty(PWM_Handle motor, uint32_t duty)
SG90 set duty.
Definition: SG90.c:35
void SG90_init(uint_least8_t index, PWM_Handle *motorHandle)
SG90 Initialize.
Definition: SG90.c:15