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:
- 11:1da15361a35b
- Parent:
- 10:9d9b3b9b28b8
- Child:
- 13:50289d0ac834
--- a/main.cpp Wed May 24 11:21:37 2017 +0000 +++ b/main.cpp Wed May 24 13:27:07 2017 +0000 @@ -9,16 +9,16 @@ TFT.set_orientation(1); TFT.background(Black); // set background to black TFT.foreground(White); // set chars to white - TFT.cls(); - // pc.baud(115200); + TFT.cls(); + // pc.baud(115200); int i = 0; while (true) { - i = (i % 3) + 1; - draw_state(i); - wait(1); + i = (i % 3) + 1; + draw_state(i); + wait(1); } - - - + + + }