From 503736c7e238e362138d2571d7d6a8936d1e82a2 Mon Sep 17 00:00:00 2001 From: hogesonline Date: Sun, 14 Jan 2018 12:41:00 +1100 Subject: [PATCH] clear neopixel bounce Plugging in USB often causes neopixels to turn on, these lines in boot.py turn them off on soft reboot. --- py/boot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/py/boot.py b/py/boot.py index 3515d00..a20797e 100644 --- a/py/boot.py +++ b/py/boot.py @@ -3,6 +3,8 @@ import machine import pyb +import quokka +quokka.neopixels.show() #pyb.main('main.py') # main script to run after this one #pyb.usb_mode('VCP+MSC') # act as a serial and a storage device #pyb.usb_mode('VCP+HID') # act as a serial device and a mouse