I managed to have a TFT screen (160*128) working on my PI (via SPI)
When the system boots, I can see the end of the boot and at the very end, the "login:"
I would like to have a program (text terminal, or graphical program, not sure yet) to start à the very end of the boot process, and use the tft screen as its STD output. I don't have X running.
(/dev/fb0 is created, when I plug in a screen it becomes /dev/fb1, but I managed to hav a /dev/fbTFT)
1/ should I disable the gettys ? (how ?) 2/ how can I have a python (or C) program start at the end of the boot and use the console as STDout ? (I don't have a keyboard) 3 should I use libcurses (text mode) ?
I can display a picture using fbi -d /dev/fbTFT -T 1 -noverbose -a cat.jpg (shows a cat)
For this, you can directly dump pixel values to the direct memory corresponding to the frame buffer. Following code is an example code that I have created for this use case based on the answer from here,
Once the code is changed according to your requirements, put it in the
/etc/rc.local
as follows,This will write directly to the memory of the framebuffer and draw stuff over it.