Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
unsigned rom char W;
unsigned char GLCD_Read(void){
b_GLCD_E=1;
Delay();
ww=GLCD_Data;
b_GLCD_E=0;
Delay();
return W;
}
unsigned char GLCD_Read_Data(void){
[COLOR="red"]//Wait_Not_Busy();[/COLOR]
TRIS_Data=0xff;
Delay();
b_GLCD_RS=1;
b_GLCD_RW=1;
b_GLCD_E=1;
Delay();
b_GLCD_E=0;
Delay();
b_GLCD_E=1;
Delay();
dat=GLCD_Data; [COLOR="red"] //move this line up before b_GLCD_E=1;[/COLOR]
b_GLCD_RW=0;
TRIS_Data=0x00;
return dat;
}
unsigned char GLCD_Read_Data(void){
Wait_Not_Busy();
TRIS_Data=0xff;
b_GLCD_RS=1;
b_GLCD_RW=1;
b_GLCD_E=1;
Delay();
// dat=GLCD_Data^0xff; // inverse display mode
dat=GLCD_Data; // regular display mode
b_GLCD_E=0;
TRIS_Data=0x00;
return dat;
}
// A/D PORT Configuration
ADCON1 = 0x00; // all digital
INTCON2bits.RBPU = 1; // Disable internal PORTB pull-ups
void main(void)
{
// A/D PORT Configuration
[COLOR="red"]ADCON1 = 0x00[/COLOR]; // all digital
INTCON2bits.RBPU = 1; // Disable internal PORTB pull-ups
void main (void){
unsigned char i;
OSCCON=0x70;
[COLOR="red"]ADCON1=0x0f;[/COLOR] // all digital