aboutsummaryrefslogtreecommitdiffstats
path: root/src/ws2812.h
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2023-02-01 13:10:46 +0100
committerLouis Burda <quent.burda@gmail.com>2023-02-01 13:10:46 +0100
commit1f1b153d6f5a25c6929af1562cb9d67b9843007e (patch)
tree1fd108be0a8ad0d0b52366510627879f0595d96b /src/ws2812.h
parentff97177aa004c6e564b253aae6aec3aa07cec24c (diff)
downloadsxkbd-1f1b153d6f5a25c6929af1562cb9d67b9843007e.tar.gz
sxkbd-1f1b153d6f5a25c6929af1562cb9d67b9843007e.zip
Move rgb convert into ws2814.c
Diffstat (limited to 'src/ws2812.h')
-rw-r--r--src/ws2812.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/ws2812.h b/src/ws2812.h
index 8c878ff..95ba4f2 100644
--- a/src/ws2812.h
+++ b/src/ws2812.h
@@ -5,10 +5,6 @@
#include <stdbool.h>
-#define _WS2812_U8(v, si, so) ((((uint32_t) (v) >> si) & 0xFF) << so)
-#define WS2812_U32RGB(rgb) (_WS2812_U8(rgb, 16, 0) \
- | _WS2812_U8(rgb, 0, 8) | _WS2812_U8(rgb, 8, 16))
-
struct ws2812 {
PIO pio;
uint sm;