We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 990b4ee commit 0fa89fdCopy full SHA for 0fa89fd
Metro/Metro_RP2350_Chips_Challenge/code.py
@@ -45,9 +45,9 @@
45
dac.headphone_output = True
46
dac.headphone_volume = -15 # dB
47
48
-try:
+if hasattr(board, "I2S_BCLK"):
49
audio_bus = audiobusio.I2SOut(board.I2S_BCLK, board.I2S_WS, board.I2S_DIN)
50
-except:
+else:
51
audio_bus = audiobusio.I2SOut(board.D9, board.D10, board.D11)
52
audio = Audio(audio_bus, SOUND_EFFECTS)
53
Metro/Metro_RP2350_Chips_Challenge/savestate.py
@@ -27,9 +27,9 @@ def _mount_sd_card(self):
27
28
# Check if the SD card is already mounted
29
try:
30
- storage.remount('/sd',readonly=False)
+ storage.getmount("/sd")
31
return True
32
- except:
+ except OSError:
33
pass
34
35
self._card_detect = DigitalInOut(board.SD_CARD_DETECT)
0 commit comments