修复 特殊板子RGB反电平驱动固件向上兼容问题
This commit is contained in:
@@ -16,7 +16,7 @@ rtc_clock=RTC()
|
|||||||
|
|
||||||
'''2RGB_WS2812'''
|
'''2RGB_WS2812'''
|
||||||
from ws2812 import NeoPixel
|
from ws2812 import NeoPixel
|
||||||
onboard_rgb = NeoPixel(Pin(12), 2, default=1)
|
onboard_rgb = NeoPixel(Pin(12), 2, default=1, timing=(450, 900, 850, 500))
|
||||||
|
|
||||||
'''1Buzzer-Music'''
|
'''1Buzzer-Music'''
|
||||||
from music import MIDI
|
from music import MIDI
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ except Exception as e:
|
|||||||
|
|
||||||
'''2RGB_WS2812''' #color_chase(),rainbow_cycle()方法移至类里
|
'''2RGB_WS2812''' #color_chase(),rainbow_cycle()方法移至类里
|
||||||
from ws2812 import NeoPixel
|
from ws2812 import NeoPixel
|
||||||
onboard_rgb = NeoPixel(Pin(12), 2, default=1)
|
onboard_rgb = NeoPixel(Pin(12), 2, default=1, timing=(450, 900, 850, 500))
|
||||||
|
|
||||||
'''3-Button'''
|
'''3-Button'''
|
||||||
class Button:
|
class Button:
|
||||||
|
|||||||
Reference in New Issue
Block a user