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: render.h
- Revision:
- 30:af38c80391cb
- Parent:
- 21:bcdd41235b69
- Child:
- 38:3fe3bafbf0c7
--- a/render.h Thu May 25 13:16:32 2017 +0000 +++ b/render.h Thu May 25 13:24:26 2017 +0000 @@ -35,7 +35,8 @@ } } void whiteboard() -{ +{ + TFT.cls(); int color = 0; int xpos = 0,ypos = 0,xp = 0,yp = 0,sw = 0;; drawbuttons(); @@ -51,7 +52,7 @@ // xp=(240*(xpos-5800))/51200; // yp=320-(320*(ypos-3000))/58300; if(touching == 1) pc.printf("\txp=%d\t,\typo=%d\n\r", xp, yp); - if(xp > 5 && yp > 50 && touching == 1) TFT.fillcircle(yp, xp, 2, color); + if(xp > 5 && yp > 50 && touching == 1) TFT.fillcircle(xp,yp, 2, color); if(yp < 50) { // color buttons sw = (int)xp / 50; switch(sw) {