# 1920x720p50, Dual Link FPD III # PCLK = 75.19MHz # DSI clock = 225.57MHz # DSI Lane Speed = 451.14Mbps/lane # 4 Lanes DSI # DSI input port 0 # DSI non-burst mode with sync pulses # MODE_SEL0 strap = No. 3 # MODE_SEL1 strap = No. 0 or 1 import time UB941AS = 0x18 board.WriteI2C(UB941AS,0x01,0x02) # Reset time.sleep(0.1) board.WriteI2C(UB941AS,0x01,0x08) # Disable DSI board.WriteI2C(UB941AS,0x40,0x04) # TSKIP_CNT board.WriteI2C(UB941AS,0x41,0x05) # TSKIP_CNT board.WriteI2C(UB941AS,0x42,0x14) # TSKIP_CNT board.WriteI2C(UB941AS,0x41,0x21) # DSI_CONFIG_1 board.WriteI2C(UB941AS,0x42,0x60) # Set HS and VS polaritry active low board.WriteI2C(UB941AS,0x40,0x10) # Init DSI Clock Settings (From Section 10.2 of datasheet) board.WriteI2C(UB941AS,0x41,0x86) # Init DSI Clock Settings (From Section 10.2 of datasheet) board.WriteI2C(UB941AS,0x42,0x0A) # Init DSI Clock Settings (From Section 10.2 of datasheet) board.WriteI2C(UB941AS,0x41,0x94) # Init DSI Clock Settings (From Section 10.2 of datasheet) board.WriteI2C(UB941AS,0x42,0x0A) # Init DSI Clock Settings (From Section 10.2 of datasheet) board.WriteI2C(UB941AS,0x01,0x00) #Release DSI