static unsigned countA=0,countB=0;
void appSetup(){}
void appLoop(){if(Mio::pressedA())countA++;if(Mio::pressedB())countB++;}
void appDraw(){
 auto &c=Mio::canvas;c.fillSprite(0x0843);c.setTextDatum(TL_DATUM);c.setTextColor(TFT_WHITE,0x0843);
 c.drawString("hello, mio make!",16,10,4);c.drawString("SPI DISPLAY / PROTOTYPE CHECK",16,42,2);
 uint16_t colors[]={TFT_RED,TFT_GREEN,TFT_BLUE,TFT_YELLOW};
 for(int i=0;i<4;i++)c.fillRoundRect(16+i*73,66,66,25,5,colors[i]);
 char s[64];snprintf(s,sizeof(s),"A %u       B %u",countA,countB);c.drawString(s,16,104,4);
 snprintf(s,sizeof(s),"Battery %.2f V  |  320 x 170",Mio::batteryVolts());c.drawString(s,16,146,2);
}

