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: mbed TouchScreen_kbv_mbed MCUFRIEND_kbv_R299 GLUE_STUFF_kbv ADA_GFX_kbv_R1107
main_glue.cpp
- Committer:
- davidprentice
- Date:
- 2021-04-27
- Revision:
- 0:063c3eaefd81
File content as of revision 0:063c3eaefd81:
#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