Some basic example code for the Nokia Color LCDs found in a lot of cellphones.
Basic code, prints text, in up 256 colors (out of 4096 possible, and the controller/firmware is actually capable of 18 bit color, but I can't tell the difference), clear screen, a method for printing variables (bits, bytes, words, and longs), x/y plotting, etc.
The code with all of the neat graphic functions like circles, lines, boxes, waves, etc. will be here eventually.
Cut and paste this into eBay's search bar to find LCDs that are compatible with this code:
nokia -6620 -6230 -6061 -3220 -73* -n9* -52* -77* -6500 -57* -53* -88* -6101 -6126 -6265 -6680 -e6* -6288 -n7* -6133 -8600 -6300 -6230i -6010 -5610 -9300 -3310 -5110 -8810 -n8* -3250 -5500 -6111 -6280 -8850 -6120 -3360 -6360 -6600 -3230 -8210 -e90 -n93 -e5* -1110 -8910
Sparkfun also has these displays:
http://www.sparkfun.com/commerce/pro...roducts_id=569
And check out sparkfun for adapter boards to plug it in:
http://www.sparkfun.com/commerce/pro...roducts_id=600
And the connector if you want to plug it in yourself somehow: (also available at Digikey and Mouser, just have to search for it)
http://www.sparkfun.com/commerce/pro...roducts_id=570
Code is originally written for a PIC18F4620 running at 40Mhz. If the LCD is mounted close, and you're relatively sure the signal is strong, you can get rid of the extra sdata lines in the togglesclock block to make writing to the LCD much faster. I had to add the extra 'delay' because my LCD was connected to the PIC on a 6ft cable.
The font table requires a PIC with 1K of EEPROM (the basic font table will fit in 512 bytes, ASCII 0 thru 127), so the PIC choices are a bit limited in that respect. This font table is copied into RAM on startup so it can be easily modified if needed. Or I suppose a person could easily change the code to put the table into program memory easily enough and read it out from there.
Bookmarks