Glove with light ring which plays http://www.raiden-x.net/

Dependencies:   Adafruit_NeoPixel MMA8451Q USBDevice mbed

Fork of Raiden by Christian Le

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());