IPIA Senior Project V2.0
Spring-Fall 2020
Loading...
Searching...
No Matches
SG90.c File Reference

SG90 driver source code. More...

#include "inc/SG90.h"
Include dependency graph for SG90.c:

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...
 

Detailed Description

SG90 driver source code.

Author
Jesus Minjares
See also
https://github.com/jminjares4
Author
Erick A. Baca
See also
https://github.com/eabaca2419
Version
0.1
Date
2022-05-20

Function Documentation

◆ SG90_init()

void SG90_init ( uint_least8_t  index,
PWM_Handle *  motorHandle 
)

SG90 Initialize.

Detailed description starts here

Parameters
indexSG90 index value
motorHandlePWM_handle reference
Returns
None

◆ SG90_setDuty()

void SG90_setDuty ( PWM_Handle  motor,
uint32_t  duty 
)

SG90 set duty.

Detailed description starts here

Parameters
motorPWM_Handle value
dutymotor duty value
Returns
None

◆ SG90_start()

void SG90_start ( PWM_Handle  motorHandle)

SG90 start.

Detailed description starts here

Parameters
motorPWM_Handle value
Returns
None