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:
- 3:5edefa83f8f0
- Parent:
- 2:7f91a86b4dc0
- Child:
- 4:03d13a53308c
diff -r 7f91a86b4dc0 -r 5edefa83f8f0 main.cpp
--- a/main.cpp Fri Apr 05 16:30:47 2019 +0000
+++ b/main.cpp Tue Apr 16 07:43:34 2019 +0000
@@ -13,10 +13,10 @@
#include "N5110.h"
#include "Falldown.h"
-#define GROUND_WIDTH 70
+//#define GROUND_WIDTH 70
#define GROUND_HEIGHT 2
-#define BALL_WIDTH 3
-#define BALL_HEIGHT 3
+#define BALL_SIZE 3
+
@@ -51,16 +51,13 @@
lcd.init();
pad.init();
- falldown.init(GROUND_WIDTH,GROUND_HEIGHT,BALL_WIDTH,BALL_HEIGHT);
+ falldown.init(GROUND_HEIGHT,BALL_SIZE);
}
void render()
{
- lcd.clear();
- //lcd.drawRect(2, 2, 80, 44, FILL_TRANSPARENT);
- //gr.draw(lcd);
- //ba.draw(lcd);
+ lcd.clear();
falldown.draw(lcd);
lcd.refresh();