#include "logo_3.h"
#include "cabecera.h"
#include "ILI9327.h"
#include "eeprom.h"
_FOSCSEL(IESO_OFF & FNOSC_PRIPLL); // Oscilador primario + PLL
_FOSC(FCKSM_CSDCMD & OSCIOFNC_OFF & POSCMD_XT); // Conmutación de Clock y Fail-Safe Clock des-habilitados, OSC2 Clout, Cristal XT.
_FWDT(FWDTEN_OFF);// Watchdog des-habilitado.
_FPOR(FPWRT_PWR2);// Power-on Reset 2ms.
extern const char __logo_BMP_desa4[] __attribute__((space(prog), aligned(2)));
extern const unsigned char Arial_12[];
extern const unsigned char Times_New_Roman_12[];
extern const unsigned char Lucida_Sans_Unicode_12[];
unsigned char cont; ///uasdo en el manejo de la eeprom
char cadena_impresion[200];
int main()
{
PLLFBD = 0x004E; // M=80.
CLKDIV = 0x0000; //N1=2, N2=2.
ANSELA = ANSELB = ANSELC = ANSELD = ANSELE = 0;
Lcd_Init();
glcd_fillScreen(NEGRO);
glcd_text57(10,1,"Lucida Sans Unicode 12",Lucida_Sans_Unicode_12,BLANCO,0);
glcd_text57(10,19,"@ABCDEFGHIJKLMNOPQRSTUVWXYZ",Lucida_Sans_Unicode_12,AZUL,0);
glcd_text57(10,37,"1234567890(|)<>\"=!#$%&/ ?+[]{}^`-.:,;",Lucida_Sans_Unicode_12,AZUL,0);
glcd_text57(10,55,"abcdefghijklmnopqrstuvwxyz",Lucida_Sans_Unicode_12,AZUL,0);
glcd_text57(10,73,"Times New Roman 12",Times_New_Roman_12,BLANCO,0);
glcd_text57(10,91,"@ABCDEFGHIJKLMNOPQRSTUVWXYZ",Times_New_Roman_12,ROJO,0);
glcd_text57(10,109,"1234567890(|)<>\"=!#$%&/ ?+[]{}^`-.:,;",Times_New_Roman_12,ROJO,0);
glcd_text57(10,127,"abcdefghijklmnopqrstuvwxyz",Times_New_Roman_12,ROJO,0);
glcd_text57(10,145,"Arial 12",Arial_12,BLANCO,0);
glcd_text57(10,163,"@ABCDEFGHIJKLMNOPQRSTUVWXYZ",Arial_12,AMARILLO,0);
glcd_text57(10,181,"1234567890(|)<>\"=!#$%&/ ?+[]{}^`-.:,;",Arial_12,AMARILLO,0);
glcd_text57(10,199,"abcdefghijklmnopqrstuvwxyz",Arial_12,AMARILLO,0);
__delay_ms(3000);
glcd_fillScreen(NEGRO);
glcd_text57(10,1,"Lucida Sans Unicode 12",Lucida_Sans_Unicode_12,BLANCO,0);
glcd_text57(10,73,"Times New Roman 12",Times_New_Roman_12,BLANCO,0);
glcd_text57(10,145,"Arial 12",Arial_12,BLANCO,0);
unsigned short contar = 0;
while(1)
{
sprintf(cadena_impresion,"%5u",contar++);
glcd_text57(10,19,cadena_impresion,Lucida_Sans_Unicode_12,AZUL,0);
glcd_text57(10,91,cadena_impresion,Times_New_Roman_12,ROJO,0);
glcd_text57(10,163,cadena_impresion,Arial_12,AMARILLO,0);
}//
}//