Christian Le / Mbed 2 deprecated Raiden

Dependencies:   MMA8451Q USBDevice mbed Adafruit_NeoPixel

Fork of RaidenX by IDD Fall 2015

Files at this revision

API Documentation at this revision

Comitter:
christianle
Date:
Mon Sep 21 03:25:34 2015 +0000
Parent:
9:07e3e2f6d6a9
Child:
11:94c3adb68ec2
Commit message:
Flex

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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());