Skip to content

Commit f3c18fd

Browse files
authored
Merge pull request adafruit#1139 from adafruit/pyportal_guitar_tuner_update
updating pyportal guitar tuner
2 parents 1e310a9 + a05c89c commit f3c18fd

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

PyPortal_Guitar_Tuner/code.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,8 @@
11
import time
2-
import board
3-
import displayio
4-
import adafruit_imageload
52
from adafruit_button import Button
63
from adafruit_pyportal import PyPortal
74

8-
display = board.DISPLAY
9-
10-
pyportal = PyPortal()
11-
12-
bitmap, palette = adafruit_imageload.load("/stock-pyportal.bmp",
13-
bitmap=displayio.Bitmap,
14-
palette=displayio.Palette)
15-
16-
# Create a TileGrid to hold the bitmap
17-
tile_grid = displayio.TileGrid(bitmap, pixel_shader=palette)
5+
pyportal = PyPortal(default_bg="/stock-pyportal.bmp")
186

197
lowE = "/sounds/lowE.wav"
208
A = "/sounds/A.wav"
@@ -34,8 +22,6 @@
3422
{'label': "highE", 'pos': (53, 150), 'size': (65, 90)}
3523
]
3624

37-
pyportal.splash.append(tile_grid)
38-
3925
buttons = []
4026
for peg in pegs:
4127
button = Button(x=peg['pos'][0], y=peg['pos'][1],

0 commit comments

Comments
 (0)