From 0181b32859c36b4f443a8a83ca54b78e4e3bbf87 Mon Sep 17 00:00:00 2001 From: Alvaro Figueroa Date: Wed, 15 Jul 2020 02:10:40 -0600 Subject: [PATCH 1/3] Fixing error, WaveFile moved to audiocore --- adafruit_pyportal.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/adafruit_pyportal.py b/adafruit_pyportal.py index f8e96a1..df0d1ff 100644 --- a/adafruit_pyportal.py +++ b/adafruit_pyportal.py @@ -59,6 +59,7 @@ import displayio from adafruit_display_text.label import Label import audioio +import audiocore import rtc import supervisor from adafruit_io.adafruit_io import IO_HTTP, AdafruitIO_RequestError @@ -628,7 +629,7 @@ def play_file(self, file_name, wait_to_finish=True): """ wavfile = open(file_name, "rb") - wavedata = audioio.WaveFile(wavfile) + wavedata = audiocore.WaveFile(wavfile) self._speaker_enable.value = True self.audio.play(wavedata) if not wait_to_finish: From f08b1019c31d0ccbce224b8838fa4fc074e9d055 Mon Sep 17 00:00:00 2001 From: Alvaro Figueroa Date: Wed, 15 Jul 2020 09:09:27 -0600 Subject: [PATCH 2/3] Fixing broken check for audiocore fix, suggested by FoamyGuy --- docs/conf.py | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/conf.py b/docs/conf.py index 24ac9a1..36fbb1a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -26,6 +26,7 @@ "supervisor", "pulseio", "audioio", + "audiocore", "displayio", "neopixel", "microcontroller", From 879941194749ce9a2d150669a460e8f1964f0b1c Mon Sep 17 00:00:00 2001 From: Alvaro Figueroa Date: Wed, 15 Jul 2020 16:57:29 -0600 Subject: [PATCH 3/3] Clarifying comment about neopixel/onboard led --- adafruit_pyportal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_pyportal.py b/adafruit_pyportal.py index df0d1ff..42c2171 100644 --- a/adafruit_pyportal.py +++ b/adafruit_pyportal.py @@ -130,7 +130,7 @@ class PyPortal: :param default_bg: The path to your default background image file or a hex color. Defaults to 0x000000. :param status_neopixel: The pin for the status NeoPixel. Use ``board.NEOPIXEL`` for the on-board - NeoPixel. Defaults to ``None``, no status LED + NeoPixel. Defaults to ``None``, not the status LED :param str text_font: The path to your font file for your data text display. :param text_position: The position of your extracted text on the display in an (x, y) tuple. Can be a list of tuples for when there's a list of json_paths, for example