1
0
forked from me/IronOS

LED iffy (unstable timer?)

This commit is contained in:
Ben V. Brown
2021-05-02 21:39:47 +10:00
parent e4f7946dcb
commit 5128602335
4 changed files with 470 additions and 493 deletions

View File

@@ -13,13 +13,13 @@
// Initialisation to be performed with scheduler active
void postRToSInit() {
WS2812::init();
WS2812::led_set_color(0, 0xAA, 0x55, 0x00);
while (true) {
// osDelay(1);
// WS2812::led_set_color(0, 0xFF, 0xFF, 0xFF);
// WS2812::led_update(1);
osDelay(10);
WS2812::led_update(1);
}
WS2812::init();
WS2812::led_set_color(0, 0xAA, 0x00, 0x00);
while (true) {
// osDelay(1);
// WS2812::led_set_color(0, 0xFF, 0xFF, 0xFF);
// WS2812::led_update(1);
osDelay(10);
WS2812::led_update(1);
}
}