Skip to content

Commit

Permalink
Update Automation HAT Mini examples
Browse files Browse the repository at this point in the history
  • Loading branch information
helgibbons committed Apr 26, 2024
1 parent 638d976 commit a320473
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions examples/hat-mini/analog.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
""".format(v="" if sys.version_info.major == 2 else sys.version_info.major))
sys.exit(1)

import ST7735 as ST7735
import st7735

try:
from fonts.ttf import RobotoBlackItalic as UserFont
Expand All @@ -32,11 +32,11 @@
""")

# Create ST7735 LCD display class.
disp = ST7735.ST7735(
disp = st7735.ST7735(
port=0,
cs=ST7735.BG_SPI_CS_FRONT,
dc=9,
backlight=25,
cs=st7735.BG_SPI_CS_FRONT,
dc="GPIO9",
backlight="GPIO25",
rotation=270,
spi_speed_hz=4000000
)
Expand Down
10 changes: 5 additions & 5 deletions examples/hat-mini/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
""".format(v="" if sys.version_info.major == 2 else sys.version_info.major))
sys.exit(1)

import ST7735 as ST7735
import st7735

print("""input.py
Expand All @@ -24,11 +24,11 @@
""")

# Create ST7735 LCD display class.
disp = ST7735.ST7735(
disp = st7735.ST7735(
port=0,
cs=ST7735.BG_SPI_CS_FRONT,
dc=9,
backlight=25,
cs=st7735.BG_SPI_CS_FRONT,
dc="GPIO9",
backlight="GPIO25",
rotation=270,
spi_speed_hz=4000000
)
Expand Down
10 changes: 5 additions & 5 deletions examples/hat-mini/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
""".format(v="" if sys.version_info.major == 2 else sys.version_info.major))
sys.exit(1)

import ST7735 as ST7735
import st7735

IMAGE_PATH = os.path.join(os.path.dirname(__file__), "images")

Expand Down Expand Up @@ -45,11 +45,11 @@ def draw_states(channels):


# Create ST7735 LCD display class.
disp = ST7735.ST7735(
disp = st7735.ST7735(
port=0,
cs=ST7735.BG_SPI_CS_FRONT,
dc=9,
backlight=25,
cs=st7735.BG_SPI_CS_FRONT,
dc="GPIO9",
backlight="GPIO25",
rotation=270,
spi_speed_hz=4000000
)
Expand Down

0 comments on commit a320473

Please sign in to comment.