![]() | ![]() | ![]() |
| | #136 |
| | |
| |
| | #137 |
|
good work man keep it up | |
| |
| | #138 |
|
Hi, Really nice work you guys. Its a very useful library. Is there a way to invert the colors of display (black font with blue or green background) ? Thanking in advance | |
| |
| | #139 | |
| Quote:
Code: void GLCD_Write_Data (unsigned char data){
Wait_Not_Busy();
GLCD_Data = data^0xff;
b_GLCD_RS=1;
b_GLCD_RW=0;
b_GLCD_E=1;
Delay();
b_GLCD_E=0;
}
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();
W=GLCD_Data^0xff;
b_GLCD_E=0;
TRIS_Data=0x00;
return W;
}
| ||
| |
| | #140 |
|
Thank you Pommie for the quick reply, it has inverted the Data but now there is a new problem. The backgound is still black and the text is inverter (Black font with blue background) what i wanted. However i actually wanted to make the complete background blue and only font black.. The attached image will help you understand what i meant. The text is displaying okay but the background is annoying now ![]() I have solved this issue but the method is really stupid so i was looking for a more professional solution for it | |
| |
| | #141 |
|
You must have changed some other part of the code as it works perfectly on mine. What happens if you call ClearScreen before printing the text? Mike. | |
| |
| | #142 |
|
what is your current code for: Code: void ClearScreen(void) Code: void GLCD_Write_Data (unsigned char data){
Wait_Not_Busy();
GLCD_Data = ~(data);
b_GLCD_RS=1;
b_GLCD_RW=0;
b_GLCD_E=1;
Delay();
b_GLCD_E=0;
}
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();
W=~(GLCD_Data);
b_GLCD_E=0;
TRIS_Data=0x00;
return W;
}
__________________ AtomSofts eBay Store AtomSoftTech: C18 TIPS & TRICKS v9 PDF Nokia 6100 Driver/Software My Name: Jason Lopez http://atomsofttech.info/ | My YouTube Videos! My Favorite Store: dipmicro Electronics Last edited by AtomSoft; Yesterday at 12:09 PM. | |
| |
| | #143 |
|
Pommie it gives the same result. ClearScreen when called actually turns the screen complete black. Is it possible that my screen is running in inverted mode already. When (in proteus) the screen is powered on, it gives black background. AtomSoft: Its the same thing, gives the same result I tried what you said earlier before asking question here on forum | |
| |
| | #144 |
|
Is this your GLCD clear screen? Code: void ClearScreen(void){
unsigned char i,j;
b_GLCD_GCS1=1;
b_GLCD_GCS2=1;
for(i=0;i<8;i++){
GLCD_Write_Cmd(0x40); //y=0
GLCD_Write_Cmd(0xb8+i); //x=0
for(j=0;j<0x40;j++)
GLCD_Write_Data(0x00);
}
SetPos(0,0);
}
__________________ AtomSofts eBay Store AtomSoftTech: C18 TIPS & TRICKS v9 PDF Nokia 6100 Driver/Software My Name: Jason Lopez http://atomsofttech.info/ | My YouTube Videos! My Favorite Store: dipmicro Electronics | |
| |
| | #145 |
|
heh for some reason not working now
__________________ AtomSofts eBay Store AtomSoftTech: C18 TIPS & TRICKS v9 PDF Nokia 6100 Driver/Software My Name: Jason Lopez http://atomsofttech.info/ | My YouTube Videos! My Favorite Store: dipmicro Electronics Last edited by AtomSoft; Yesterday at 02:12 PM. | |
| |
| | #146 |
|
AtomSoft: It doesnt actually make any difference. I have tried GLCD_Write_Data(0x00); and GLCD_Write_Data(~(0x00)); and GLCD_Write_Data(0xFF); Still gives the same result | |
| |
| | #147 |
|
heh please tell me you are trying this in proteus
__________________ AtomSofts eBay Store AtomSoftTech: C18 TIPS & TRICKS v9 PDF Nokia 6100 Driver/Software My Name: Jason Lopez http://atomsofttech.info/ | My YouTube Videos! My Favorite Store: dipmicro Electronics | |
| |
| | #148 |
|
If you are then try this: ![]() also revert all the data back to normal, meaning If you changed the read data and others put them back to normal.... the only thing that should be changed is: Code: void GLCD_Write_Data (unsigned char data){
Wait_Not_Busy();
GLCD_Data =~data;
b_GLCD_RS=1;
b_GLCD_RW=0;
b_GLCD_E=1;
Delay();
b_GLCD_E=0;
}
__________________ AtomSofts eBay Store AtomSoftTech: C18 TIPS & TRICKS v9 PDF Nokia 6100 Driver/Software My Name: Jason Lopez http://atomsofttech.info/ | My YouTube Videos! My Favorite Store: dipmicro Electronics Last edited by AtomSoft; Yesterday at 02:53 PM. | |
| |
| | #149 |
|
Thank you so much ![]() It finally works by changing the initial contents of Ram. Will this work in real GLCD project aswell (i hope so) | |
| |
| | #150 |
|
it should heh.... and your welcome ![]() ill test it out later on or tomorrow and ill take some pictures
__________________ AtomSofts eBay Store AtomSoftTech: C18 TIPS & TRICKS v9 PDF Nokia 6100 Driver/Software My Name: Jason Lopez http://atomsofttech.info/ | My YouTube Videos! My Favorite Store: dipmicro Electronics Last edited by AtomSoft; Yesterday at 11:14 PM. | |
| |
|
| Tags |
| demo, glcd, unicorn |
| Thread Tools | |
| Display Modes | |
| |
Similar | ||||
| Title | Starter | Forum | Replies | Latest |
| Unicorn Oscilloscope running GLCD 128x64 & Photo | blueroomelectronics | Micro Controllers | 8 | 18th June 2007 03:06 PM |
| Help understanding the Unicorn | Kyle-s4h | Micro Controllers | 2 | 5th June 2007 07:09 PM |
| Open MultiSim DEMO Files | mayo | General Electronics Chat | 1 | 3rd May 2007 04:52 PM |
| mcuStudio an Eclipse based IDE for PIC: flash demo available | octal | Micro Controllers | 0 | 23rd August 2006 06:44 AM |
| Honeywell HMR3000 DEMO KIT | shermaine | General Electronics Chat | 5 | 26th May 2005 09:35 AM |