TFT_Touch_exemplo3_git

Dependencies:   mbed TouchScreen_kbv_mbed MCUFRIEND_kbv_R299 GLUE_STUFF_kbv ADA_GFX_kbv_R1107

main_glue.cpp

Committer:
henriquer
Date:
2021-05-25
Revision:
4:606d4da3f1b4
Parent:
0:063c3eaefd81

File content as of revision 4:606d4da3f1b4:

#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