diff options
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 | |||