Skip to content

Commit

Permalink
Fix use of WaveFile to support CircuitPython 6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
theacodes committed Nov 19, 2020
1 parent 083df2b commit 78eec81
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 262 deletions.
Binary file removed factory/.cache/firmware.uf2.bin
Binary file not shown.
260 changes: 0 additions & 260 deletions factory/.cache/winterbloom_voltageio.py

This file was deleted.

1 change: 1 addition & 0 deletions factory/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
calibrations/
bootloader.bin
firmware.uf2
.cache
1 change: 0 additions & 1 deletion factory/factory_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import time
import os
import subprocess
import utils
import shutil
import zipfile
import sys
Expand Down
3 changes: 2 additions & 1 deletion firmware/winterbloom_bhb/bhb.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import time

import audioio
import audiocore
import board
import digitalio
import winterbloom_voltageio
Expand Down Expand Up @@ -95,7 +96,7 @@ def released(self):
return result

def load_sample(self, path):
return audioio.WaveFile(open(path, "rb"))
return audiocore.WaveFile(open(path, "rb"))

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

0 comments on commit 78eec81

Please sign in to comment.