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