servo.h source code
More...
servo.h source code
- Author
- Jesus Minjares (https://github.com/jminjares4)
- Version
- 0.1
- Date
- 2021-11-27
- Copyright
- Copyright (c) 2021
◆ haltServo()
void haltServo |
( |
Servo * |
servo | ) |
|
haltServo will stop the timer of the mcpwm
- Parameters
-
servo | pass a Servo motor by reference |
- Returns
- None
◆ moveServo()
void moveServo |
( |
Servo * |
servo, |
|
|
int |
angle |
|
) |
| |
moveServo will move the servo motor by angles
- Parameters
-
servo | pass a Servo by reference |
angle | int servo angle movment |
- Note
- Rangee for -90 to 90 degrees
◆ servoInit()
void servoInit |
( |
Servo * |
servo | ) |
|
servoInit will initialize servo motor
- Parameters
-
servo | pass a Servo motor by reference |
◆ startServo()
void startServo |
( |
Servo * |
servo | ) |
|
startServo will start the time of the mcpwm
- Parameters
-
servo | pass a Servo motor by reference |