Basis of functionality (needs flashing, capacitance and set touch) 15:45 wed
Dependencies: mbed
Diff: main.cpp
- Revision:
- 0:4d558fb3be50
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed May 24 14:46:40 2017 +0000 @@ -0,0 +1,66 @@ +#include "mbed.h" +#include "string" +#include "Arial12x12.h" +#include "Arial24x23.h" +#include "Arial28x28.h" +#include "font_big.h" +#include "stdio.h" + +#include "SPI_TFT_ILI9341.h" + + +void alarmtouch_Hour() + if (60<=xp<=140 && 30<=yp<=100) { + //flashing hour black/white + //changable state w/capacitance + //cease w/set button (interrup/flag?) + +} + +void alarmtouch_Min() + if (230<=xp<=310 && 30<=yp<=100) { + //flashing Min black/white + //changable state w/capacitance + //cease w/set button (interrupt/flag?) + +} + +void timetouch_Hour() + if (60<=xp<=140 && 130<=yp<=190) { + //flashing hour black/white + //changable state w/capacitance + //cease w/set button (interrup/flag?) + +} + +void timetouch_Min() + if (230<=xp<=310 && 130<=yp<=190) { + //flashing min black/white + //changable state w/capacitance + //cease w/set button (interrup/flag?) + +} + +void datetouch_day() + if (60<=xp<=110 && 200<=yp<=240) { + //flashing day black/white + //changable state w/capacitance + //cease w/set button (interrup/flag?) + +} + +void datetouch_month() + if (120<=xp<=180 && 200<=yp<=240) { + //flashing month black/white + //changable state w/capacitance + //cease w/set button (interrup/flag?) + +} + +void datetouch_year() + if (190<=xp<=320 && 200<=yp<=240) { + //flashing year black/white + //changable state w/capacitance + //cease w/set button (interrup/flag?) + +} \ No newline at end of file