![](/media/cache/profiles/3b56beb4fb3143ab7f05335134909435.50x50_q85.jpg)
Build upon app-board-Servo. Print servo readings, scaled to [0.0, 1.0], to LCD on mbed Application Board. Scale reading to [0 - 270] range of typical servo. Print servo angles to LCD on mbed Application Board.
Dependencies: C12832_lcd Servo mbed
Fork of app-board-Servo by
Diff: main.cpp
- Revision:
- 3:58ae2860725e
- Parent:
- 2:85693b6a99fa
- Child:
- 4:62b61875eab5
--- a/main.cpp Tue Oct 08 04:01:19 2013 +0000 +++ b/main.cpp Tue Oct 08 09:54:53 2013 +0000 @@ -36,7 +36,7 @@ lcd.cls(); //Clear screen for new cycle lcd.locate(3,3); //Screen location - lcd.printf("pan"); //Column heading + lcd.printf("pan |"); //Column heading lcd.locate(40,3); //Screen location lcd.printf("tilt"); //Column heading lcd.locate(3,12); //Screen location @@ -45,7 +45,7 @@ lcd.printf("%.2f\n",TILTa); //Print TILT s1=p1; //Set PAN servo to PAN potentiometer reading s2=p2; //Set PAN servo to PAN potentiometer reading - //wait(0.1); //Wait for servos to make position + wait(0.1); //Wait for servos to make position } }