v2
Dependencies: BLE_API mbed DOOR
Fork of DOOR by
Diff: main.cpp
- Revision:
- 71:468aa9135c41
- Parent:
- 69:bc2f5bfe5e33
- Child:
- 72:371bb75cdd1a
diff -r bc2f5bfe5e33 -r 468aa9135c41 main.cpp --- a/main.cpp Mon Nov 16 17:05:52 2015 +0000 +++ b/main.cpp Mon Nov 16 19:10:31 2015 +0000 @@ -178,12 +178,12 @@ switch(value) { - // open door + // close door case b1_id : case bA1_id : led1 = !led1; b1 = 1; break; - // close door + // open door case b2_id : case bA2_id : led1 = !led1; b1 = 0; @@ -191,9 +191,9 @@ // timed open 10 seconds case b3_id : case bA3_id : led1 = !led1; - b1 = 1; + b1 = 0; wait(10); - b1 = 0; + b1 = 1; break; // light 1 on case b4_id :