Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: RTC-DS1307 SPI_TFT_ILI9341 TFT_fonts mbed tsi_sensor
Fork of TFT_Mikroelectronika_IL9341_sketchpad by
Revision 22:7a453c1d4d22, committed 2017-05-25
- Comitter:
- mlin
- Date:
- Thu May 25 11:30:31 2017 +0000
- Parent:
- 20:e4572fc1b10d
- Child:
- 23:72e2d9e422f7
- Commit message:
- Added Digital time Screen Button Names
Changed in this revision
| drawStates.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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);
