Hi folks.
I am in the process of moving my project from a back buffer based display to the FT81x
My target MCU is STM32F407 and I am using a Gameduino3 shield as a display dev board.
I have SPI comms up and running, reset the FT81x with the PWRDOWN and ACTIVE host commands,
wait for 7C in REG_ID, and enable the display by writing 0x80 to REG_GPIO and 5 to REG_PCLK.
I now have a black screen with a single red pixel in the top left corner. (could be the bottom right, but beside the point)
I have also written a simple display list to clear the screen to a distinct colour and finally written 1 to REG_DLSWAP to swap in the new list.
However, the display is still black with a single red pixel in the top left.
I've checked the display timings and verified that the default parameters are correct for this screen, and that also the gameduino library makes no changes to the timing registers.
Since I am able to reset, activate, read id and enable the display, I believe my SPI routines are working correctly.
I've also checked the Display List Command macros to make sure they're putting out the correct values.
I've had a jolly good look through the application notes, programmer's guide and data sheet, and I see nothing that I am missing.
I don't know why I have just a single red pixel in the corner of a black background.
My next step will be to start reading out registers and the display list, and verifying their values are correct.
But if anyone knows what causes this situation and how to fix it, I'd really appreciate it.
Cheers,
AT38
SOLVED:
Data is little-endian, address is big-endian. I was sending data as big-endian.