Skip to content

Commit

Permalink
Updated examples to use front backlight pin
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Apr 30, 2019
1 parent 50394ab commit 85c91e0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions examples/framerate.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
# Create ST7735 LCD display class.
disp = ST7735.ST7735(
port=0,
cs=ST7735.BG_SPI_CS_FRONT,
cs=ST7735.BG_SPI_CS_FRONT, # BG_SPI_CSB_BACK or BG_SPI_CS_FRONT
dc=9,
backlight=18,
backlight=19, # 18 for back BG slot, 19 for front BG slot.
rotation=90,
spi_speed_hz=SPI_SPEED_MHZ * 1000000
)
Expand Down
4 changes: 2 additions & 2 deletions examples/gif.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
# Create TFT LCD display class.
disp = ST7735.ST7735(
port=0,
cs=ST7735.BG_SPI_CS_FRONT,
cs=ST7735.BG_SPI_CS_FRONT, # BG_SPI_CSB_BACK or BG_SPI_CS_FRONT
dc=9,
backlight=18,
backlight=19, # 18 for back BG slot, 19 for front BG slot.
spi_speed_hz=4000000
)

Expand Down
4 changes: 2 additions & 2 deletions examples/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
# Create ST7735 LCD display class.
disp = ST7735.ST7735(
port=0,
cs=ST7735.BG_SPI_CS_FRONT,
cs=ST7735.BG_SPI_CS_FRONT, # BG_SPI_CSB_BACK or BG_SPI_CS_FRONT
dc=9,
backlight=18,
backlight=19, # 18 for back BG slot, 19 for front BG slot.
rotation=90,
spi_speed_hz=4000000
)
Expand Down
4 changes: 2 additions & 2 deletions examples/scrolling-text.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
# Create ST7735 LCD display class.
disp = ST7735.ST7735(
port=0,
cs=ST7735.BG_SPI_CS_FRONT,
cs=ST7735.BG_SPI_CS_FRONT, # BG_SPI_CSB_BACK or BG_SPI_CS_FRONT
dc=9,
backlight=18,
backlight=19, # 18 for back BG slot, 19 for front BG slot.
rotation=90,
spi_speed_hz=10000000
)
Expand Down
4 changes: 2 additions & 2 deletions examples/shapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
# Create ST7735 LCD display class.
disp = ST7735.ST7735(
port=0,
cs=ST7735.BG_SPI_CS_FRONT,
cs=ST7735.BG_SPI_CS_FRONT, # BG_SPI_CSB_BACK or BG_SPI_CS_FRONT
dc=9,
backlight=18,
backlight=19, # 18 for back BG slot, 19 for front BG slot.
rotation=90,
spi_speed_hz=4000000
)
Expand Down

0 comments on commit 85c91e0

Please sign in to comment.