diff options
author | Akshay <[email protected]> | 2022-04-10 12:13:40 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2022-04-10 12:13:40 +0100 |
commit | dc90387ce7d8ba7b607d9c48540bf6d8b560f14d (patch) | |
tree | 4ccb8fa5886b66fa9d480edef74236c27f035e16 /keyboards/duck/duck_led/duck_led.h |
Diffstat (limited to 'keyboards/duck/duck_led/duck_led.h')
-rw-r--r-- | keyboards/duck/duck_led/duck_led.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/keyboards/duck/duck_led/duck_led.h b/keyboards/duck/duck_led/duck_led.h new file mode 100644 index 000000000..2546366d0 --- /dev/null +++ b/keyboards/duck/duck_led/duck_led.h | |||
@@ -0,0 +1,16 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #define RES 6000 | ||
4 | |||
5 | #define NS_PER_SEC (1000000000L) | ||
6 | #define CYCLES_PER_SEC (F_CPU) | ||
7 | #define NS_PER_CYCLE (NS_PER_SEC / CYCLES_PER_SEC) | ||
8 | #define NS_TO_CYCLES(n) ((n) / NS_PER_CYCLE) | ||
9 | |||
10 | enum Device { | ||
11 | Device_PCBRGB, | ||
12 | Device_STATUSLED | ||
13 | }; | ||
14 | |||
15 | void show(void); | ||
16 | |||