修复 特殊板子RGB反电平驱动固件向上兼容问题

This commit is contained in:
dahanzimin
2024-10-16 21:28:05 +08:00
parent 39c573c42e
commit 752eb8b804
2 changed files with 528 additions and 528 deletions

View File

@@ -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

View File

@@ -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: