Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Pantalla LCD
Pantalla LCD
h>
#include <URTouch.h>
extern uint8_t SmallFont[];
// Arduino Mega:
// -------------------
// Standard Arduino Mega/Due shield : <display model>,38,39,40,41
// CTE TFT LCD/SD Shield for Arduino Mega : <display model>,38,39,40,41
//
// Remember to change the model parameter to suit your display module!
UTFT myGLCD(ILI9341_16,38,39,40,41);
URTouch myTouch( 6, 5, 4, 3, 2);
int x, y;
char stCurrent[20]="";
int stCurrentLen=0;
char stLast[20]="";
void setup()
{
randomSeed(analogRead(0));
delay(5000);
myGLCD.setColor(68, 255, 227);
myGLCD.fillScr(68, 255, 227);
//myGLCD.setColor(128, 128, 128);
myGLCD.fillRoundRect(80, 70, 239, 169);
myGLCD.setColor(0,0,0);
myGLCD.setBackColor(68, 255, 227);
myGLCD.print("INICIANDO...", CENTER, 93);
myGLCD.print("MEDIDOR DE GLUCOSA", CENTER, 119);
myGLCD.setFont(SmallFont);
myGLCD.print("www.glucoapp.eshost.com.ar", CENTER, 227);
delay(5000);
myGLCD.fillScr(0, 0, 0);
myGLCD.setFont(BigFont);
myGLCD.setColor(255, 255, 255);
myGLCD.setBackColor(0,0,0);
myGLCD.print("SU NIVEL DE GLUCOSA", CENTER, 67);
myGLCD.print("ES DE: mg/dl", CENTER, 93);
myGLCD.setColor(255, 0, 0);
myGLCD.print("NORMAL / ALERTA", CENTER, 119);
delay(15000);
}