// Programa para probar el display del NOKIA 1100.
#include <16F877A.h> //
#fuses XT,NOWDT,NOPROTECT,NOLVP
#use delay(clock=4000000)
// Definimos las librerías utilizadas:
#include <LCD_NOKIA1100.h> // Librería de la pantalla.
const char icono[9][24] = {
{1,1,1,1,1,1,255,1,1,1,1,1,1,1,1,1,1,1,255,1,1,1,1,1},
{1,1,1,1,1,1,255,1,1,1,1,1,1,1,1,1,1,1,255,1,1,1,1,1},
{1,1,1,1,1,1,255,1,1,1,1,1,1,1,1,1,1,1,255,1,1,1,1,1},
{1,1,1,1,1,1,255,1,1,1,1,1,1,1,1,1,1,1,255,1,1,1,1,1},
{1,1,1,1,1,1,255,1,1,1,1,1,1,1,1,1,1,1,255,1,1,1,1,1},
{1,1,1,1,1,1,255,1,1,1,1,1,1,1,1,1,1,1,255,1,1,1,1,1},
{1,1,1,1,1,1,255,1,1,1,1,1,1,1,1,1,1,1,255,1,1,1,1,1},
{1,1,1,1,1,1,255,1,1,1,1,1,1,1,1,1,1,1,255,1,1,1,1,1},
{1,1,1,1,1,1,255,1,1,1,1,1,1,1,1,1,1,1,255,1,1,1,1,1}
};
/*
[COLOR="Red"]El error aparece en esta parte, dice q el dato es muy grande!, por lo tanto lo tengo desactivado y estoy enviando el dato de arriba, con el cual no estoy logrando nada.[/COLOR]
const char icono[9][96]={
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,24,24,24,24,24,24,248,248,24,24,24,24,24,24,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
};
*/
// Variables globales:
int x = 0;
int y = 0;
int draw = 0;
int pulso = 0;
int delay = 2;
// Cuerpo principal del programa:
void main(void){
init_lcd(); // Inicializa el hardware del display.
Write_lcd(CMD,0xb0);
Write_lcd(CMD,0x10);
Write_lcd(CMD,0x00);
while(true) {
gotoxy(0,0);
for(y=0;y<9;y++) {
for(x=0;x<24;x++) {
write_lcd(DTA,icono[y][x]);
}
}
}
}