Draw a color pixel on the LCD

emplab
How can I draw a pixel on the 7inch lcd in the linux with mini6410?
If have any example code please introduce to me.

anatoly
Retrieve the LCD buffer address in memory from LCD interface registers.
Then just write a byte (or two, or even three) in that area.
You will see a Pixel...

Juergen Beisert
If you want to do it by your own just open the "/dev/fb0" device node,
query for the geometry and colour depth of the framebuffer memory via
IOCTL, map the framebuffer memory the device node provides into your
application and then write your pixel data to this mapped memory.

All steps shown above are already done for you in graphical frameworks like
Qt. If you want to re-invent everything: happy hacking.

For a short test, you can run a "cat /dev/urandom > /dev/fb0" to get some
random coloured pixels onto your screen and to see how simple it is to draw
graphics.

emplab
Thank you for your answers.
I run "cat /dev/urandom > /dev/fb0", and see the results.
But I want to draw a pixel in special X and Y axis.
Can you help me for IOCTL commands?

emplab
I could draw pixels on the lcd with ioctl and "/dev/fb0" successfully.
But I have one question that Can I draw 420 pixels in 1ms?
how can i find timing for lcd functions?

Juergen Beisert
You just draw your pixels into a piece of main memory. The S3C2440's LCD
controller then reads out this memory 60 times per second and sends the
data to the LCD display.

> Can I draw 420 pixels in 1ms?

Lets assume your pixel is RGB888/unpacked, so each pixel uses 4 bytes / 1
word. You want to draw 420 of them, for each you have about 2,4 µs in 1 ms.
The CPU's DRAM interface is *much* faster.
Keep in mind: you don't talk to the LCD display. You just define the data
the SoC's LCD controller should sent to the LCD display.

> how can i find timing for lcd functions?

???