board.WriteI2C(UH941AS,0x01,0x08) #Disable DSI # set split mode, left/right 3D image, non-continuous clock mode board.WriteI2C(UH941AS,0x1E,0x01) #Select Port0 board.WriteI2C(UH941AS,0x5B,0x07) #Force Splitter Mode board.WriteI2C(UH941AS,0x56,0x80) #Enable conversion of L/R image into alternating pixel image board.WriteI2C(UH941AS, 0x4F, 0x8C) #Set 4 lane DSI ##### Register 4F code configuration limited to use case of single DSI mode (RX Port 0) and no Altnerate line mode. If you would like to change the mode, please see register 0x4F [6:4] in D/S board.WriteI2C(UH941AS,0x1E,0x02) #Select Port1 board.WriteI2C(UH941AS,0x5B,0x07) #Force Splitter Mode board.WriteI2C(UH941AS,0x56,0x80) #Enable conversion of L/R image into alternating pixel image board.WriteI2C(UH941AS, 0x4F, 0x8C) #Set 4 lane DSI ##### Register 4F code configuration limited to use case of single DSI mode (RX Port 0) and no Altnerate line mode. If you would like to change the mode, please see register 0x4F [6:4] in D/S board.WriteI2C(UH941AS, 0x1E, 0x01) # Select Port0 board.WriteI2C(UH941AS, 0x32, 0x80) #Set IMG_LINE_SIZE board.WriteI2C(UH941AS, 0x33, 0x07) #Set IMG_LINE_SIZE board.WriteI2C(UH941AS, 0x36, 0x00) #Set crop start X position (LSB) board.WriteI2C(UH941AS, 0x37, 0x80) #Set crop start X position (MSB) board.WriteI2C(UH941AS, 0x38, 0x7F) #Set crop stop X position (LSB) board.WriteI2C(UH941AS, 0x39, 0x07) #Set crop stop X position (MSB) board.WriteI2C(UH941AS, 0x3A, 0x00) #Set crop start Y position (LSB) board.WriteI2C(UH941AS, 0x3B, 0x00) #Set crop start Y position (MSB) board.WriteI2C(UH941AS, 0x3C, 0xCF) #Set crop stop Y position (MSB) board.WriteI2C(UH941AS, 0x3D, 0x02) #Set crop start Y position (LSB) board.WriteI2C(UH941AS, 0x1E, 0x02) # Select Port1 board.WriteI2C(UH941AS, 0x36, 0x00) #Set crop start X position (LSB) board.WriteI2C(UH941AS, 0x37, 0x80) #Set crop start X position (MSB) board.WriteI2C(UH941AS, 0x38, 0x7F) #Set crop stop X position (LSB) board.WriteI2C(UH941AS, 0x39, 0x07) #Set crop stop X position (MSB) board.WriteI2C(UH941AS, 0x3A, 0x00) #Set crop start Y position (LSB) board.WriteI2C(UH941AS, 0x3B, 0x00) #Set crop start Y position (MSB) board.WriteI2C(UH941AS, 0x3C, 0xCF) #Set crop stop Y position (MSB) board.WriteI2C(UH941AS, 0x3D, 0x02) #Set crop start Y position (LSB) board.WriteI2C(UH941AS,0x1E,0x01) # Select Port0 board.WriteI2C(UH941AS, 0x40, 0x04) # Select DSI digital page board.WriteI2C(UH941AS, 0x41, 0x05) # To reg 0x05 (TSKIP CNT) board.WriteI2C(UH941AS, 0x42, 0x1E) # Set value for DSI+CLK board.WriteI2C(UH941AS,0x40,0x08) # Select DSI digital page board.WriteI2C(UH941AS,0x41,0x05) # To reg 0x05 (TSKIP CNT) board.WriteI2C(UH941AS, 0x42, 0x1E) # Set value for DSI+CLK board.WriteI2C(UH941AS,0x01,0x00) #Enable DSI