I have some questions about the begin function in the file mcufriend_kbv.cpp for the ST7793 driver (line 2937 - #if defined(SUPPORT_B509_7793).
- What is the purpose of writing 0X000 four times in the register 0x0000. I don't understand, I thought this is the ID register and read only?
- The 'gamma' registers are labeled 0X0300 etc while in the data sheet of the diver, I find the addresses 0X0380 etc.
- When I write these values in these registers and read them again, I get different values. Also after a reset, I do not read the default values?
- Is the order that is used to initiate these registers important?
I would like to understand this better. I am using a different type of hardware set up (A basic xiao board for the RS, RD, WR, ... lines and a I2C pcf8574 expansion IC for the Data line.
Thanks for your help.