I was able to build a kernel.img from the following code, but when I turn on the Pi Zero, the screen is just blank. It is getting power, but nothing else seems to be going on. I should be seeing the text "Hello TFT", right?
My display is an Adafruit PiTFT Plus 3.5" and I have it stuck right on top the GPIO pins of the Pi Zero.
Code: Select all
ConsoleHandle:=ConsoleWindowCreate(ConsoleDeviceFindByDescription('Framebuffer Console (' + DeviceGetName(@FramebufferDevice.Device) + ')'),CONSOLE_POSITION_FULL,True);
FramebufferDevice:=FramebufferDeviceFindByDescription('Adafruit PiTFT 3.5" LCD');
TFTHandle:=ConsoleWindowCreate(ConsoleDeviceFindByDescription('Framebuffer Console (' + DeviceGetName(@FramebufferDevice.Device) + ')'),CONSOLE_POSITION_FULL,False);
Another thing I noticed is that the activity led turns green, when I turn on the Pi, then off and then blinks once, after that it remains off. Not sure if that means everything is OK, or if there a problem booting.
I have been looking at the documentation for the Console Unit, and there seems to be methods to actually draw the console windows, but I am still not too sure if I should be using those, or if they have a different purpose.
Again, any help or hints are greatly appreciated.