![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Simple fish eat program
Dependencies: mbed mbed-rtos N5110 ShiftReg Tone
Diff: main.cpp
- Revision:
- 0:cf9660998431
- Child:
- 1:7dfa61225fcf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Mar 19 16:27:52 2021 +0000 @@ -0,0 +1,32 @@ +#include "mbed.h" +#include "N5110.h" +#include "Graphics.h" + +N5110 lcd(p8,p9,p10,p11,p13,p21); +Graphics graphics; + +DigitalIn button_A (p29); + +int main(){ + lcd.init(); + button_A.mode(PullNone); + + while(1){ + lcd.clear(); + graphics.titleScreen(lcd); + lcd.refresh(); + wait_ms(1000/10); + + while(button_A.read() == 0){ + lcd.clear(); + graphics.confirmationScreen(lcd); + lcd.refresh(); + wait_ms(1000/10); + } + + graphics.screenFlash(lcd); + lcd.refresh(); + } + + +} \ No newline at end of file