Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed WattBob_TextLCD globals
Diff: main.cpp
- Revision:
- 1:fc3a5c5100d2
- Parent:
- 0:af612d827a23
- Child:
- 2:1549900755ba
diff -r af612d827a23 -r fc3a5c5100d2 main.cpp
--- a/main.cpp Wed Nov 30 00:53:17 2011 +0000
+++ b/main.cpp Wed Nov 30 04:12:04 2011 +0000
@@ -34,8 +34,8 @@
//******************************************************************************
//declare Pin
//
-AnalogIn sensor1(p15);
-AnalogIn sensor2(p16);
+DigitalIn sensor1(p8);
+DigitalIn sensor2(p7);
DigitalOut valueLED1(p23);
DigitalOut valueLED2(p25);
@@ -258,7 +258,17 @@
lcd->locate(1,0);
lcd->printf("urgency mode");
break;
-
+//
+// Exit mode
+//
+ case EXIT :
+ servo_4.pulsewidth_us(0);
+ servo_0.pulsewidth_us(0);
+ servo_5.pulsewidth_us(0);
+ lcd->cls();
+ lcd->locate(0,0);
+ lcd->printf("W3C");
+ break;
//
// catch any problems
//