fix rgb exception and wait before catch record

This commit is contained in:
2026-08-18 18:25:02 +05:00
parent f10f9de524
commit 34164ffc33
2 changed files with 16 additions and 8 deletions
+9 -6
View File
@@ -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()