Skip to content

Commit

Permalink
Add a note about Pirate Audio backlight pin.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Nov 11, 2024
1 parent 202923b commit d00b9a9
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
3 changes: 2 additions & 1 deletion examples/framerate.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
port=0,
cs=st7789.BG_SPI_CS_FRONT, # BG_SPI_CS_BACK or BG_SPI_CS_FRONT
dc=9,
backlight=backlight, # 18 for back BG slot, 19 for front BG slot.
backlight=19, # Breakout Garden: 18 for back slot, 19 for front slot.
# NOTE: Change this to 13 for Pirate Audio boards
spi_speed_hz=SPI_SPEED_MHZ * 1000000,
offset_left=offset_left,
offset_top=offset_top,
Expand Down
3 changes: 2 additions & 1 deletion examples/gif.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
port=0,
cs=st7789.BG_SPI_CS_FRONT, # BG_SPI_CS_BACK or BG_SPI_CS_FRONT
dc=9,
backlight=19, # 18 for back BG slot, 19 for front BG slot.
backlight=19, # Breakout Garden: 18 for back slot, 19 for front slot.
# NOTE: Change this to 13 for Pirate Audio boards
spi_speed_hz=80 * 1000 * 1000,
offset_left=0 if display_type == "square" else 40,
offset_top=53 if display_type == "rect" else 0,
Expand Down
3 changes: 2 additions & 1 deletion examples/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
port=0,
cs=st7789.BG_SPI_CS_FRONT, # BG_SPI_CS_BACK or BG_SPI_CS_FRONT
dc=9,
backlight=19, # 18 for back BG slot, 19 for front BG slot.
backlight=19, # Breakout Garden: 18 for back slot, 19 for front slot.
# NOTE: Change this to 13 for Pirate Audio boards
spi_speed_hz=80 * 1000 * 1000,
offset_left=0 if display_type == "square" else 40,
offset_top=53 if display_type == "rect" else 0,
Expand Down
3 changes: 2 additions & 1 deletion examples/round.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
port=0,
cs=st7789.BG_SPI_CS_FRONT, # BG_SPI_CS_BACK or BG_SPI_CS_FRONT
dc=9,
backlight=19, # 18 for back BG slot, 19 for front BG slot.
backlight=19, # Breakout Garden: 18 for back slot, 19 for front slot.
# NOTE: Change this to 13 for Pirate Audio boards
rotation=90,
spi_speed_hz=80 * 1000 * 1000,
offset_left=40,
Expand Down
3 changes: 2 additions & 1 deletion examples/scrolling-text.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
port=0,
cs=st7789.BG_SPI_CS_FRONT, # BG_SPI_CS_BACK or BG_SPI_CS_FRONT
dc=9,
backlight=19, # 18 for back BG slot, 19 for front BG slot.
backlight=19, # Breakout Garden: 18 for back slot, 19 for front slot.
# NOTE: Change this to 13 for Pirate Audio boards
spi_speed_hz=80 * 1000 * 1000,
offset_left=0 if display_type == "square" else 40,
offset_top=53 if display_type == "rect" else 0,
Expand Down
3 changes: 2 additions & 1 deletion examples/shapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
port=0,
cs=st7789.BG_SPI_CS_FRONT, # BG_SPI_CS_BACK or BG_SPI_CS_FRONT
dc=9,
backlight=19, # 18 for back BG slot, 19 for front BG slot.
backlight=19, # Breakout Garden: 18 for back slot, 19 for front slot.
# NOTE: Change this to 13 for Pirate Audio boards
spi_speed_hz=80 * 1000 * 1000,
offset_left=0 if display_type == "square" else 40,
offset_top=53 if display_type == "rect" else 0,
Expand Down

0 comments on commit d00b9a9

Please sign in to comment.