cpat
New Member
Posts: 8
|
Post by cpat on May 9, 2018 4:24:40 GMT -8
Hello,
I made a custom board with the FT810 and after using the GD2 Library I'm having troubles with the screen colors.
After checking the GD2 schematic found here I noticed that the Red, Green and Blue lines have been swapped between the chip output and the LCD connector.
I based my wiring on the the suggested schematic in the FT810 datasheet, considering it as the reference.
Should I change my routing or is there any software workaround ?
Thanks
|
|
|
Post by jamesbowman on May 11, 2018 5:41:01 GMT -8
|
|
cpat
New Member
Posts: 8
|
Post by cpat on May 12, 2018 4:37:10 GMT -8
Thanks a lot ! How do I change the b3 b2 b1 b0 values ? I found : #define REG_SWIZZLE (ft8xx_model ? 0x302064UL : 0x102460UL) in GD2.h library but it doesn't match the datasheet values...
|
|
|
Post by jamesbowman on May 12, 2018 7:42:24 GMT -8
0x302064 and 0x102460 are the register's addresses in the FT810 and FT800 respectively.
One way to set REG_SWIZZLE in your own code by adding this value after GD.begin:
GD.wr(REG_SWIZZLE, 0x00);
|
|
cpat
New Member
Posts: 8
|
Post by cpat on May 12, 2018 12:31:52 GMT -8
Perfect ! It works... a little !
I'm now having another problem (I initially thought it was due to the initial problem but no...) The part in the setup() function is displayed as it should but not anymore as I place my code in loop(). Usually you advise to start with "Hello World", I did it. It works only with the code in setup(). The loop part displays briefly and disappears to a black screen. Some register stuff to change ?
|
|