emadmasri40 / SmartHome

1 stars 0 forks source link

Servo motor #7

Closed sanody closed 5 years ago

sanody commented 5 years ago

3

sanody commented 5 years ago

include

include "tm4c123gh6pm.h"

include "PWM.c"

void SERVO_ANGLE(int angle) { PWM0->_0_CMPA =(375-1.38*angle); }