#include <p18f2525.h>
#include "nokia7110.h"
#pragma config WDT = OFF, LVP = OFF, OSC = INTIO67, XINST = OFF
unsigned rom char foot[770] = { 96,64,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 128, 128, 192, 192, 128, 128, 128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 192, 224, 240, 240, 248, 248, 252, 252, 252, 252, 252, 248, 248, 240, 240, 224, 192, 128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 224, 240, 248, 252, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 252, 0, 0, 56, 124, 124, 252, 252, 252, 252, 252, 248, 248, 112, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 31, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 254, 254, 252, 248, 248, 240, 240, 224, 224, 192, 192, 192, 128, 128, 128, 128, 128, 128, 128, 128, 128, 192, 192, 224, 224, 240, 240, 248, 252, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 127, 31, 7, 3, 0, 0, 48, 112, 248, 248, 248, 240, 240, 97, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 3, 3, 7, 7, 15, 15, 15, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 31, 63, 63, 63, 63, 127, 127, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 127, 15, 0, 128, 128, 196, 142, 158, 158, 30, 62, 30, 28, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 3, 3, 3, 7, 7, 7, 15, 15, 31, 31, 31, 63, 63, 63, 127, 127, 127, 127, 127, 127, 127, 127, 63, 63, 31, 31, 15, 3, 49, 112, 240, 240, 243, 227, 71, 7, 7, 7, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
};
void main(void);
void main(void){
char a,b,c,d;
OSCCON = 0x72; //8MHz clock
while(!OSCCONbits.IOFS); //wait for osc stable
LCD_Init();
ClearBuff();
while(1){
CLS();
LCDString((unsigned rom char*)"AtomSoftTech ",0,None,0,0);
LCDString((unsigned rom char*)" .info ",0,None,1,0);
LCDString((unsigned rom char*)" Nokia 7110 LCD ",0,None,3,0);
LCDString((unsigned rom char*)"Author:",1,Underline,5,0);
LCDString((unsigned rom char*)"Jason Lopez ",0,None,7,0);
while(bitchk(LCD_PORT,BTN));
Delay10KTCYx(10);
CLS();
LCDImage(foot,0,0);
while(bitchk(LCD_PORT,BTN));
Delay10KTCYx(10);
CLS();
for(d=0;d<8;d++){
b=0;
for(a=0;a<96;a++){
SetPixel(b+(d*8),a);
b++;
if(b==8)b=0;
}
}
SendBuff();
ClearBuff();
while(bitchk(LCD_PORT,BTN));
Delay10KTCYx(10);
CLS();
LCDLine(5,10,5,80);
SendBuff();
ClearBuff();
while(bitchk(LCD_PORT,BTN));
Delay10KTCYx(10);
CLS();
LCDCircle(20,20,10);
LCDCircle(30,30,10);
LCDCircle(36,36,10);
SendBuff();
ClearBuff();
while(bitchk(LCD_PORT,BTN));
Delay10KTCYx(10);
CLS();
LCDRect(20,20,40,20);
SendBuff();
ClearBuff();
while(bitchk(LCD_PORT,BTN));
Delay10KTCYx(10);
}
}