1
0
forked from me/IronOS

WiP on WS2812 Protocol driver

This commit is contained in:
Ben V. Brown
2021-05-02 21:22:29 +10:00
parent 5637e1a215
commit e4f7946dcb
10 changed files with 596 additions and 329 deletions

View File

@@ -3,6 +3,7 @@
#include "I2C_Wrapper.hpp"
#include "QC3.h"
#include "Settings.h"
#include "WS2812.h"
#include "cmsis_os.h"
#include "fusbpd.h"
#include "main.hpp"
@@ -11,4 +12,14 @@
#include "task.h"
// Initialisation to be performed with scheduler active
void postRToSInit() {}
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);
}
}