fix reset.py
@@ -7,14 +7,22 @@ pin5.value(1)
try:
from display import *
display.clear()
+except:
+ pass
+
+try:
import music
music.stop(machine.PWM(machine.Pin(27)))
+ music.stop(27)
+except:
+ pass
+
+try:
import neopixel
rgb = neopixel.NeoPixel(machine.Pin(2), 2, timing = True)
rgb[0] = (0, 0, 0)
rgb[1] = (0, 0, 0)
rgb.write()
- import music
- music.stop(27)
except:
pass
+
