pong game added to the main sketch
Dependencies: RTC-DS1307 SPI_TFT_ILI9341 TFT_fonts mbed tsi_sensor
Fork of MainSketch by
Diff: main.cpp
- Revision:
- 13:50289d0ac834
- Parent:
- 11:1da15361a35b
--- a/main.cpp Wed May 24 13:27:07 2017 +0000 +++ b/main.cpp Wed May 24 16:15:04 2017 +0000 @@ -1,7 +1,8 @@ #include "libs.h" int f_state, f_button; +//DigitalOut led(LED1); bool f_alarm; -DigitalIn sw_w(SW3); +//DigitalIn sw_w(SW3); void main() { @@ -11,12 +12,13 @@ TFT.foreground(White); // set chars to white TFT.cls(); // pc.baud(115200); - int i = 0; + /*int i = 0; while (true) { i = (i % 3) + 1; draw_state(i); wait(1); - } + }*/ + draw_state(4);