====================================================================================================
FM6127 Register Description
====================================================================================================

http://bobdavis321.blogspot.com/2019/02/p3-64x32-hub75e-led-matrix-panels-with.html
https://github.com/hzeller/rpi-rgb-led-matrix/files/4140096/FM6127.txt

https://pdf1.alldatasheet.com/datasheet-pdf/view/1145498/FUMAN/FM6126A.html
http://superchip.cn/Private/ProductFiles/63694649249960578960607011.pdf

====================================================================================================

-----------   ---   ---------------------------------
Instruction   LE    Instruction Description
-----------   ---   ---------------------------------
RESET_OEN     0-1   Soft reset signal
DATA_LATCH    3     latches 16-bit data to the output
WR_REG1       11    Write configuration register 1
WR_REG2       12    Write configuration register 2
WR_REG3       10    Write configuration register 3

===================================================================================================

----------
Register 1
----------

11111111 11001110 default
|||||||| ||||||||- Low Gray Compensation Bit 0 (0-7, default 4) (default 0)
|||||||| |||||||-- Output enable 1=On, 0=Off (default 1)
|||||||| ||||||--- Intensity Bit 0 (15-63, default 63) (default 1)
|||||||| |||||---- Intensity Bit 1 (15-63, default 63) (default 1)
|||||||| ||||----- Inflection Point Bit 0 (0-7, default 4) (default 0)
|||||||| |||------ Inflection Point Bit 1 (0-7, default 4) (default 0)
|||||||| ||------- Inflection Point Bit 2 (0-7, default 4 (FM6126=6)) (default 1)
|||||||| |-------- Intensity Bit 2 (15-63, default 63) (default 1)

||||||||---------- Intensity Bit 3 (15-63, default 63) (default 1)
|||||||----------- Intensity Bit 4 (15-63, default 63) (default 1)
||||||------------ Intensity Bit 5 (15-63, default 63) (default 1)
|||||------------- Lower Blanking Level #1 Bit 0 (0-15, default 15) (default 1)
||||-------------- Lower Blanking Level #1 Bit 1 (0-15, default 15) (default 1)
|||--------------- Lower Blanking Level #1 Bit 2 (0-15, default 15) (default 1)
||---------------- Lower Blanking Level #1 Bit 3 (0-15, default 15) (default 1)
|----------------- First Line of Dark Compensation Bit 4 (0-15, default 8) (default 1)

----------
Register 2
----------

11111000 01100010 default red
11110000 01100010 default green
11101000 01100010 default blue
|||||||| ||||||||- Low Gray Compensation Bit 1 (0-7, default 4) (default 0)
|||||||| |||||||-- Low Gray Compensation Bit 2 (0-7, default 4) (default 1)
|||||||| ||||||--- SDO Output delay 1=On, 0=Off (Default 0)
|||||||| |||||---- Lower Blanking Level #2 (0-1, default 0)
|||||||| ||||----- Ghosting Enhancement (0=off*, 1=on)
|||||||| |||------ Always 1
|||||||| ||------- LE Data latch 1=On, 0=Off (Default 1)
|||||||| |-------- Always 0

||||||||---------- First Line of Dark Compensation Bit 0 (0-15, default 8) (default 0)
|||||||----------- First Line of Dark Compensation Bit 1 (0-15, default 8) (default 0)
||||||------------ First Line of Dark Compensation Bit 2 (0-15, default 8) (default 0)
|||||------------- OE Delay Bit 0
||||-------------- OE Delay Bit 1 (0-3, default red=3, green=2, blue=1)
|||--------------- Always 1
||---------------- Always 1
|----------------- Always 1

----------
Register 3
----------

00011111 00000000  default
|||||||| ||||||||- Always 0
|||||||| |||||||-- Always 0
|||||||| ||||||--- Always 0
|||||||| |||||---- Always 0
|||||||| ||||----- Always 0
|||||||| |||------ Always 0
|||||||| ||------- Always 0
|||||||| |-------- Always 0

||||||||---------- Always 1
|||||||----------- Always 1
||||||------------ Always 1
|||||------------- Always 1
||||-------------- Always 1
|||--------------- Always 0
||---------------- Bad Pixel Elimination 1=On 0=Off*
|----------------- Always 0

====================================================================================================
