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: MMA8451Q USBDevice mbed Adafruit_NeoPixel
Fork of RaidenX by
Revision 10:ca3a7890d146, committed 2015-09-21
- 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());

