LCDInfo.com
http://forum.lcdinfo.com/

some problem in code????????
http://forum.lcdinfo.com/viewtopic.php?f=9&t=1512
Page 1 of 1

Author:  rasha [ Tue Mar 14, 2006 2:24 ]
Post subject:  some problem in code????????

1-

i can't understande how he put this value to each color:
red&green (0,2,4,6,8,10,12,15),blue(0,4 ,9 ,15)
what indicate this value and how he put it from data sheet?????????? :cry:

spi_command(RGBSET8); // setup color lookup table
// color table
//RED
spi_data(0);
spi_data(2);
spi_data(4);
spi_data(6);
spi_data(8);
spi_data(10);
spi_data(12);
spi_data(15);
// GREEN
spi_data(0);
spi_data(2);
spi_data(4);
spi_data(6);
spi_data(8);
spi_data(10);
spi_data(12);
spi_data(15);
//BLUE
spi_data(0);
spi_data(4);
spi_data(9);
spi_data(15);
---------------------------------------------------
2- how he know that 28 is green color:

spi_command(RAMWR); // write some stuff (background)
for (i = 0; i < 18000; i++){
spi_data(28); // 28 is green
}
----------------------------------------------
3-how i can accses certain pixel in lcd and how i can control color of it?
----------------------------------------------
how he use this 2 command :
spi_command(PASET); // page start/end ram
spi_data(2); // for some reason starts at 2
spi_data(131);

spi_command(CASET); // column start/end ram
spi_data(0);
spi_data(131);
value from 2-131what mean and i want more details about ddram how ican work with it? becouse i cant understand how it divided?

in data sheet he put(paset)COMMAND:
for parametre(p1)start page (D0-D7)(P10...P17) WHAT THIS VALUE(P10-P17) AND LIKE THAT IN CASET?
--------------------------------------------
i think by this solving this problem my problem will solve
thank u for any help :)

Page 1 of 1 All times are UTC + 2 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/