issues
search
emadmasri40
/
SmartHome
1
stars
0
forks
source link
Servo motor
#7
Closed
sanody
closed
5 years ago
sanody
commented
5 years ago
3
function to initialize the servo motor
then we need to receive interrupt from tiva 2 to determine the angle of servo
sanody
commented
5 years ago
include
include "tm4c123gh6pm.h"
include "PWM.c"
void SERVO_ANGLE(int angle) { PWM0->_0_CMPA =(375-1.38*angle); }
3