Contains the main execution of the clock uses headers to import functions
Dependencies: RTC-DS1307 SPI_TFT_ILI9341 TFT_fonts mbed tsi_sensor
Fork of TFT_Mikroelectronika_IL9341_sketchpad by
Diff: drawStates.h
- Revision:
- 22:7a453c1d4d22
- Parent:
- 20:e4572fc1b10d
- Child:
- 29:684e2a3e17b5
--- a/drawStates.h Thu May 25 11:04:31 2017 +0000 +++ b/drawStates.h Thu May 25 11:30:31 2017 +0000 @@ -7,10 +7,28 @@ case (1): //buttons TFT.fillrect(0, 0, 50, 50, Red); + TFT.background(Red); + TFT.locate(2,5); + TFT.set_font((unsigned char*) Arial12x12); + TFT.printf("Dig/\n\rALog"); TFT.fillrect(0, 50, 50, 100, Green); + TFT.background(Green); + TFT.locate(2, 55); + TFT.printf("Set\n\rTime"); TFT.fillrect(0, 100, 50, 150, Blue); + TFT.background(Blue); + TFT.locate(2, 105); + TFT.printf("Draw"); + TFT.background(White); TFT.fillrect(0, 150, 50, 200, White); + TFT.foreground(Black); + TFT.locate(2,155); + TFT.printf("Pong"); + TFT.background(Black); + TFT.foreground(White); TFT.fillrect(0, 200, 50, 240, Black); + TFT.locate(2, 205); + TFT.printf("Home"); TFT.rect(0, 0, 50, 50, White); TFT.rect(0, 50, 50, 100, White);