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: Adafruit_NeoPixel MMA8451Q USBDevice mbed
Fork of Raiden by
Diff: main.cpp
- Revision:
- 10:ca3a7890d146
- Parent:
- 9:07e3e2f6d6a9
- Child:
- 11:94c3adb68ec2
--- a/main.cpp	Mon Sep 21 02:15:17 2015 +0000
+++ b/main.cpp	Mon Sep 21 03:25:34 2015 +0000
@@ -230,6 +230,13 @@
 //            report.data[3] = 0;
 //            report.data[4] = keymap[DOWN_ARROW].usage;
         }
+        
+        if (flex.read() < 0.4) {
+            mac.printf("Bomb");
+//            report.data[8] = keymap['x'].usage;
+        } else {
+//            report.data[8] = 0;
+        }
 
         rled = 1.0 - abs(acc.getAccX());
         bled = 1.0 - abs(acc.getAccY());
    