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
main.cpp
- Committer:
- mlin
- Date:
- 2017-05-25
- Revision:
- 16:3cb9b1fbc039
- Parent:
- 12:50289d0ac834
- Child:
- 19:4c30c3182e04
File content as of revision 16:3cb9b1fbc039:
#include "libs.h" //DigitalOut led(LED1); bool f_alarm, f_alarm_sound; int f_state_no; //DigitalIn sw_w(SW3); void main() { TFT.claim(stdout); // send stdout to the TFT display TFT.set_orientation(1); TFT.background(Black); // set background to black TFT.foreground(White); // set chars to white TFT.cls(); // pc.baud(115200); /*int i = 0; while (true) { i = (i % 3) + 1; draw_state(i); wait(1); }*/ draw_state(4); }