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 Chris Styles

Revision:
0:d1fc4eddceab
Child:
1:08d46aff0a08
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Oct 15 12:43:06 2012 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+#include "Servo.h"
+
+Servo s1(p21);
+Servo s2(p22);
+
+AnalogIn p1(p19);
+AnalogIn p2(p20);
+
+int main() {
+    while(1) {
+        s1=p1;
+        s2=p2;        
+        wait(0.1);
+    }
+}