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
Diff: main.cpp
- Revision:
- 1:813ba5341985
- Parent:
- 0:fe19852199d2
- Child:
- 2:725c213b2396
--- a/main.cpp Tue Mar 19 09:49:12 2019 +0000 +++ b/main.cpp Tue Mar 19 14:48:40 2019 +0000 @@ -12,10 +12,6 @@ void init(); void start_screen(); - -int x_direction; -int y_direction; - int main() { init(); @@ -24,8 +20,12 @@ while (1) { contrast(); - //engine.minermove(lcd, pad); - engine.minermove(lcd, pad); + engine.read_direction(pad); + engine.miner_move(); + engine.miner_draw(lcd); + engine.miner_jump(lcd, pad); + wait(0.1); + } } @@ -45,7 +45,7 @@ lcd.refresh(); float con = pot0.read(); lcd.setContrast(con); - + lcd.clear(); }