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
settings.h
- Committer:
- mlin
- Date:
- 2017-05-25
- Revision:
- 16:3cb9b1fbc039
- Parent:
- 12:50289d0ac834
- Child:
- 18:02667782b06f
File content as of revision 16:3cb9b1fbc039:
void drawsettingsbuttons() //Navigation Buttons
{
TFT.fillrect(0,0,50,100,Blue); //ste alarm button
TFT.fillrect(0,100,50,200,White); //set time button
TFT.fillrect(0,200,50,240,Green); //home button
TFT.rect(0,0,50,100,Blue); //outlines
TFT.rect(0,100,50,200,White); //outlines
TFT.rect(0,200,50,240,White); //outlines
//set New button (used to set new alarm/time/date)
TFT.set_font((unsigned char*) Arial12x12);
TFT.locate(0,40);
TFT.printf("Set New");
//Full reset button
TFT.locate(0,140);
TFT.printf("Full reset");
//home button
TFT.locate(0,210);
TFT.printf("Home");
}
void drawoutlines() //draw alarm, time, date
{
TFT.rect(50,0,320,100,Blue); //set alarm box
TFT.rect(50,100,320,200,White); //set time box
TFT.rect(50,200,320,240,White); //set date box
TFT.set_font((unsigned char*) Arial12x12); //set alarm title
TFT.locate(105,0);
TFT.printf("Set Alarm");
TFT.set_font((unsigned char*) Arial24x23); //set alarm hour
TFT.locate(50,30);
TFT.printf("Alarm_Hour");
//set alarm mins
TFT.locate(230,30);
TFT.printf("Alarm_Min");
TFT.set_font((unsigned char*) Arial12x12); //set time title
TFT.locate(105,100);
TFT.printf("Set Time");
TFT.set_font((unsigned char*) Arial24x23); //set time hour
TFT.locate(50,130);
TFT.printf("Time_Hour");
//set time mins
TFT.locate(230,130);
TFT.printf("Alarm_Min");
TFT.set_font((unsigned char*) Arial12x12);//set date day
TFT.locate(50,200);
TFT.printf("day");
//set date month
TFT.locate(120,200);
TFT.printf("month");
//set date year
TFT.locate(190,200);
TFT.printf("year");
}
void settingslogic() {
}
