diff options
| author | Louis Burda <quent.burda@gmail.com> | 2022-11-20 16:35:30 +0100 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2022-11-20 16:35:44 +0100 |
| commit | 570c88be0e06de5a36c8af0de7b112e9509325df (patch) | |
| tree | 4c5d4a9f36db5cf6e920d06104f4be66fa2a1766 /src/neopix.h | |
| parent | 5c2cb697aa8d03eed27b45f8dc67957c45a3d722 (diff) | |
| download | sxkbd-570c88be0e06de5a36c8af0de7b112e9509325df.tar.gz sxkbd-570c88be0e06de5a36c8af0de7b112e9509325df.zip | |
Add CDC stdio driver and logging + panic handlers
Diffstat (limited to 'src/neopix.h')
| -rw-r--r-- | src/neopix.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/neopix.h b/src/neopix.h index 8b01038..5ef3c4b 100644 --- a/src/neopix.h +++ b/src/neopix.h @@ -1,10 +1,15 @@ +#pragma once + #include "hardware/pio.h" #include "hardware/gpio.h" +#include <stdbool.h> + struct neopix { PIO pio; uint sm; uint pin; + bool init; }; void neopix_init(struct neopix *pix, PIO pio, uint sm, uint pin); |
