Skip to content

Commit

Permalink
Merge pull request #2445 from Muny/fix-128x160-artifacts
Browse files Browse the repository at this point in the history
Use correct resolution register value. Fixes dim artifacts on edge of 128x160 screens
  • Loading branch information
olikraus authored May 17, 2024
2 parents 3e86287 + 5967df8 commit 6e2c5b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csrc/u8x8_d_sh1108.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ static const uint8_t u8x8_d_sh1108_128x160_noname_init_seq[] = {

U8X8_C(0x0ae), /* display off */
U8X8_CA(0x0d5, 0x060), /* clock divide ratio and oscillator frequency */
U8X8_CA(0x0a9, 0x003), /* set display resolution, 0=64x160, 1=96x160, 2=128x160, 3=160x160 */
U8X8_CA(0x0a9, 0x002), /* set display resolution, 0=64x160, 1=96x160, 2=128x160, 3=160x160 */
U8X8_C(0x020), /* addressing mode */
U8X8_CA(0x081, 0x01f), /* set contrast control */
U8X8_CA(0x0ad, 0x80), /* DC/DC control 80=Use external Vpp, 89=Use internal DC/DC*/
Expand Down

0 comments on commit 6e2c5b6

Please sign in to comment.