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:
- 15:7ca2d1b2bd0e
- Parent:
- 8:5f0190b282f7
diff -r 3b4370d5b2c0 -r 7ca2d1b2bd0e main.cpp
--- a/main.cpp Fri May 29 04:25:22 2020 +0000
+++ b/main.cpp Fri May 29 07:35:45 2020 +0000
@@ -12,7 +12,8 @@
#define BOARD_LENGTH 8
#define BULLET_SIZE 2
#define BULLET_SPEED 3
-
+#define BOARD_X 42
+#define BOARD_Y 24
/////////////// structs /////////////////
struct UserInput {
Direction d;
@@ -67,7 +68,7 @@
{
lcd.init();
pad.init();
- touch.init(BOARD_WIDTH,BOARD_LENGTH,BULLET_SIZE,BULLET_SPEED,lcd);
+ touch.init(BOARD_WIDTH,BOARD_LENGTH,BULLET_SIZE,BULLET_SPEED,lcd,BOARD_X,BOARD_Y);
}
//clearing record before and drawing frames
void render()
@@ -80,7 +81,7 @@
//welcome screen
void welcome() {
- lcd.printString(" touch! ",0,1);
+ lcd.printString(" STOP BULLET ",0,1);
lcd.printString(" Press Start ",0,4);
lcd.refresh();