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: mbed 4DGL-uLCD-SE MMA8452
Diff: main.cpp
- Revision:
- 4:fb7d49e660f2
- Parent:
- 3:0e14def93d4e
diff -r 0e14def93d4e -r fb7d49e660f2 main.cpp
--- a/main.cpp Fri Mar 15 20:46:37 2019 -0400
+++ b/main.cpp Sat Mar 16 05:25:19 2019 +0000
@@ -3,6 +3,7 @@
#include "Sprites/main_character/main_character.h"
#include "hash_table/hash_table.h"
#include "worlds/worlds.h"
+#include "inputs/inputs.h"
uLCD_4DGL uLCD(p9, p10, p11); // serial tx, serial rx, reset pin;
Serial pc(USBTX, USBRX);
@@ -28,6 +29,7 @@
uLCD.background_color(WHITE);
initWorlds();
sprite* ret_sprite;
+ inputs_init();
for(int y = 0; y < 8; y+=1){
@@ -46,6 +48,7 @@
while(1) {
myled = 1;
wait(0.2);
+ pc.printf("VALUE %d\r\n",get_inputs());
myled = 0;
wait(0.2);
}