lcd
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
lcd [2024/09/30 13:54] – created arisotura | lcd [2025/03/16 15:26] (current) – arisotura | ||
---|---|---|---|
Line 8: | Line 8: | ||
Before displaying anything, the LCD must be initialized with the following sequence. | Before displaying anything, the LCD must be initialized with the following sequence. | ||
- | First, configure the LCD [[GPIO]] (at 0xF0005100) as an output, by setting it to 0xC200. Then set it to zero, wait atleast 5 milliseconds, | + | First, configure the LCD [[GPIO]] (at 0xF0005100) as an output, by setting it to 0xC200. Then set it to zero (0xC200), wait atleast 5 milliseconds, |
Then, to identify the LCD, perform the following I2C transactions, | Then, to identify the LCD, perform the following I2C transactions, | ||
Line 16: | Line 16: | ||
- Send bytes 0xB0, 0x03. | - Send bytes 0xB0, 0x03. | ||
- | The 4 first bytes received in the second transaction are the LCD's ID. There are two possible values: | + | The first 4 bytes received in the second transaction are the LCD's ID. There are two possible values: |
- | ^ ID ^ LCD type ^ | + | ^ ID ^ LCD type |
- | | 0x08922201 | JDI | + | | 0x08922201 | JDI R69208 |
- | | 0x00000002 | Panasonic | | + | | 0x00000002 | Panasonic |
Any other value would indicate a communication failure. | Any other value would indicate a communication failure. | ||
+ | |||
+ | Note: not sure if any retail gamepads are equipped with the Panasonic LCD. The diagnostics firmware only supports the JDI one. | ||
The second part of the initialization procedure depends on the LCD type. | The second part of the initialization procedure depends on the LCD type. | ||
Line 79: | Line 81: | ||
Where A is setting A, B is setting B, and C is 0x01 when turning on the backlight, 0x00 when turning it off. | Where A is setting A, B is setting B, and C is 0x01 when turning on the backlight, 0x00 when turning it off. | ||
- | As a last step, send command 0x12 to the UIC to actually toggle the backlight. | + | As a last step, send [[UIC# |
The LCD should now be ready to go. | The LCD should now be ready to go. |
lcd.1727704448.txt.gz · Last modified: 2024/09/30 13:54 by arisotura