Bingshuo Chen
/
Monster_copy_copy
27
Diff: main.cpp
- Revision:
- 1:48a028c4089e
- Parent:
- 0:ef959ad27a16
- Child:
- 2:9a31febe6d2f
--- a/main.cpp Thu Apr 08 02:09:25 2021 +0000 +++ b/main.cpp Fri Apr 09 06:34:43 2021 +0000 @@ -16,6 +16,9 @@ DigitalIn button_B(p28); DigitalIn button_C(p27); DigitalIn button_D(p26); +DigitalOut led1(LED1); +DigitalOut led2(LED2); +DigitalOut led3(LED3); Monster monster; @@ -68,8 +71,8 @@ lcd.printString("Press A NEXT",0,5); - // thread_sleep_for(200); lcd.refresh(); + thread_sleep_for(50); } @@ -105,7 +108,7 @@ void game_begin() { - monster.monster_main(lcd, button_A, button_B, button_C, button_D); + monster.monster_main(lcd, button_A, button_B, button_C, button_D, led1, led2, led3); }