Skip to content

Commit

Permalink
Merge pull request #22 from tyeth/adjust_setosc
Browse files Browse the repository at this point in the history
Adjust SETOSC to 0x66 from 0x68 (60/60Hz Normal/Idle mode)
  • Loading branch information
FoamyGuy authored Apr 1, 2024
2 parents 11dddce + 3d67a8d commit 394493c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion adafruit_hx8357.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
* Adafruit CircuitPython firmware for the supported boards:
https://github.com/adafruit/circuitpython/releases
** Datasheet:**
https://cdn-shop.adafruit.com/datasheets/HX8357-D_DS_April2012.pdf
"""

# imports
Expand All @@ -45,7 +48,7 @@
b"\xB9\x83\xFF\x83\x57\xFF" # _SETC and delay 500ms
b"\xB3\x04\x80\x00\x06\x06" # _SETRGB 0x80 enables SDO pin (0x00 disables)
b"\xB6\x01\x25" # _SETCOM -1.52V
b"\xB0\x01\x68" # _SETOSC Normal mode 70Hz, Idle mode 55 Hz
b"\xB0\x01\x66" # _SETOSC Normal mode 60Hz, Idle mode 60 Hz
b"\xCC\x01\x05" # _SETPANEL BGR, Gate direction swapped
b"\xB1\x06\x00\x15\x1C\x1C\x83\xAA" # _SETPWR1 Not deep standby BT VSPR VSNR AP
b"\xC0\x06\x50\x50\x01\x3C\x1E\x08" # _SETSTBA OPON normal OPON idle STBA GEN
Expand Down

0 comments on commit 394493c

Please sign in to comment.