![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Final
Fork of MiniProject5_LightTracker by
main.cpp
- Committer:
- asloop18
- Date:
- 2016-01-11
- Revision:
- 10:b7cebc1f3768
- Parent:
- 9:daeae936f9ec
- Child:
- 11:7b3d64a66efd
File content as of revision 10:b7cebc1f3768:
//Main #include "mbed.h" #include "SegDisplay.h" #include "ServoControl.h" AnalogIn sensor1(p19); AnalogIn sensor2(p20); float angle; int main(){ ServoInit(); if(sensor1>sensor2){angle=angle+1;} if(sensor1>sensor2){angle=angle+1;} ServoControl(angle); }