Add multi-panel Pico UDP firmware and Python LED control.
Pico panels get static IPs on 10.1.1.10–14 with per-panel LED counts, Makefile deploy targets, and Python examples for animations, sync tests, and direct Pi SPI control. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
21
firmware/panel/timer.c
Normal file
21
firmware/panel/timer.c
Normal file
@@ -0,0 +1,21 @@
|
||||
#include "timer.h"
|
||||
|
||||
static struct repeating_timer g_timer;
|
||||
static void (*g_callback)(void);
|
||||
|
||||
void wizchip_1ms_timer_initialize(void (*callback)(void)) {
|
||||
g_callback = callback;
|
||||
add_repeating_timer_us(-1000, wizchip_1ms_timer_callback, NULL, &g_timer);
|
||||
}
|
||||
|
||||
bool wizchip_1ms_timer_callback(struct repeating_timer *t) {
|
||||
(void)t;
|
||||
if (g_callback != NULL) {
|
||||
g_callback();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void wizchip_delay_ms(uint32_t ms) {
|
||||
sleep_ms(ms);
|
||||
}
|
||||
Reference in New Issue
Block a user