Fix: 修复MicroPython MixGoAI和Microbit下一些py异常同时格式化代码
This commit is contained in:
@@ -3,11 +3,13 @@ import neopixel
|
||||
|
||||
np = neopixel.NeoPixel(pin12, 4)
|
||||
|
||||
|
||||
def mixly_rgb_show_all(r, g, b):
|
||||
for led in range(4):
|
||||
np[led] = (r, g, b)
|
||||
np.show()
|
||||
|
||||
|
||||
def mixly_rgb_show(led, r, g, b):
|
||||
np[led] = (r, g, b)
|
||||
np.show()
|
||||
np.show()
|
||||
|
||||
Reference in New Issue
Block a user