Preston Stephens
/
MiniProject5_LightTracker
Final
Fork of MiniProject5_LightTracker by
ServoControl.cpp
- Committer:
- asloop18
- Date:
- 2016-01-11
- Revision:
- 6:992875df04f7
- Child:
- 7:30afa5506e74
File content as of revision 6:992875df04f7:
//Control Function for servo #include ServoControl.h PwnOut ServoSignal(p21); //P21 is PWM signal out to servo void ServoInit(void){ ServoSignal.period(0.020); } float ServoSignal(float angle){ ServoSignal.pulsewidth_us(1500+10*angle); }