TFT_Touch_exemplo5_git

Dependencies:   mbed TouchScreen_kbv_mbed MCUFRIEND_kbv_R299 GLUE_STUFF_kbv ADA_GFX_kbv_R1107

Revision:
0:063c3eaefd81
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main_glue.cpp	Tue Apr 27 07:03:31 2021 +0000
@@ -0,0 +1,35 @@
+#if 1
+
+#include "Arduino.h"
+#include "HardwareSerial.h"
+//#include "readpixel_kbv.inc"
+//#include "graphictest_kbv.inc"
+
+HardwareSerial serial_kbv(USBTX, USBRX); 
+
+uint32_t millis(void)
+{
+    static Timer t;
+    static int first = 1;
+    if (first) first = 0, t.start();
+    return t.read_ms();
+}
+
+uint32_t micros(void)
+{
+    static Timer t;
+    static int first = 1;
+    if (first) first = 0, t.start();
+    return t.read_us();
+}
+
+int main(void)
+{
+    setup();
+    while (1) {
+        loop();
+    }
+    return 0;  //never happens
+}
+
+#endif