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: BLE_API mbed DOOR
Fork of BLE_iBeacon_POC by
Revision 70:468aa9135c41, committed 2015-11-16
- Comitter:
- peteratsl
- Date:
- Mon Nov 16 19:10:31 2015 +0000
- Parent:
- 69:bc2f5bfe5e33
- Commit message:
- v2
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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 :