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
Diff: settings.h
- Revision:
- 30:af38c80391cb
- Parent:
- 29:684e2a3e17b5
- Child:
- 31:3255668e6b08
--- a/settings.h Thu May 25 13:16:32 2017 +0000
+++ b/settings.h Thu May 25 13:24:26 2017 +0000
@@ -33,6 +33,7 @@
void drawsettingback() //Navigation Buttons
{
+ TFT.cls();
TFT.fillrect(0,0,50,100,Blue); //set alarm button
TFT.fillrect(0,100,50,200,White); //set time button
@@ -127,9 +128,10 @@
int multiplier = 8;
int o_setting = 11;
drawsettingback();
+ int option = 0;
while (true){
drawsettinganimate(a_h, a_m,t_h,t_m,t_d,t_mo,t_y);
- int option = setting_press();
+ option = setting_press();
int newval = 0;
if (option == 0 || option == 2) break;
switch (option) {
