fix rgb exception and wait before catch record
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
import wifi_server
|
||||
from machine import Pin
|
||||
from neopixel import NeoPixel
|
||||
np = NeoPixel(Pin(8), 1)
|
||||
np[0] = (0, 0, 0)
|
||||
np.write()
|
||||
try:
|
||||
from machine import Pin
|
||||
from neopixel import NeoPixel
|
||||
np = NeoPixel(Pin(8), 1)
|
||||
np[0] = (0, 0, 0)
|
||||
np.write()
|
||||
except Exception as e:
|
||||
print("rgb off failed", e)
|
||||
|
||||
import wifi_server
|
||||
wifi_server.main()
|
||||
|
||||
Reference in New Issue
Block a user