Skip to content

Commit 78eec81

Browse files
committed
Fix use of WaveFile to support CircuitPython 6.0
1 parent 083df2b commit 78eec81

File tree

5 files changed

+3
-262
lines changed

5 files changed

+3
-262
lines changed

factory/.cache/firmware.uf2.bin

-207 KB
Binary file not shown.

factory/.cache/winterbloom_voltageio.py

Lines changed: 0 additions & 260 deletions
This file was deleted.

factory/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
calibrations/
22
bootloader.bin
33
firmware.uf2
4+
.cache

factory/factory_setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import time
33
import os
44
import subprocess
5-
import utils
65
import shutil
76
import zipfile
87
import sys

firmware/winterbloom_bhb/bhb.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import time
2424

2525
import audioio
26+
import audiocore
2627
import board
2728
import digitalio
2829
import winterbloom_voltageio
@@ -95,7 +96,7 @@ def released(self):
9596
return result
9697

9798
def load_sample(self, path):
98-
return audioio.WaveFile(open(path, "rb"))
99+
return audiocore.WaveFile(open(path, "rb"))
99100

100101
def play(self, sample, pitch_cv=None, loop=False):
101102
if pitch_cv is not None:

0 commit comments

Comments
 (0)