Skip to content

Commit 8a846fe

Browse files
Melissa LeBlanc-WilliamsMelissa LeBlanc-Williams
authored andcommitted
Updated Init delay and Fixed Example
1 parent f57a312 commit 8a846fe

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ Usage Example
3636
from adafruit_hx8357 import HX8357
3737
3838
spi = board.SPI()
39-
tft_cs = board.D5
40-
tft_dc = board.D6
39+
tft_cs = board.D9
40+
tft_dc = board.D10
4141
4242
displayio.release_displays()
4343
display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs)

adafruit_hx8357.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_HX8357.git"
5252

5353
_INIT_SEQUENCE = (
54-
b"\x01\x80\x0A" # _SWRESET and Delay 10ms
54+
b"\x01\x80\x64" # _SWRESET and Delay 100ms
5555
b"\xB9\x83\xFF\x83\x57\xFF" # _SETC and delay 500ms
5656
b"\xB3\x04\x80\x00\x06\x06" # _SETRGB 0x80 enables SDO pin (0x00 disables)
5757
b"\xB6\x01\x25" # _SETCOM -1.52V

examples/hx8357_simpletest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
from adafruit_hx8357 import HX8357
99

1010
spi = board.SPI()
11-
tft_cs = board.D5
12-
tft_dc = board.D6
11+
tft_cs = board.D9
12+
tft_dc = board.D10
1313

1414
displayio.release_displays()
1515
display_bus = displayio.FourWire(spi, command=tft_dc, chip_select=tft_cs)

0 commit comments

Comments
 (0)