aboutsummaryrefslogtreecommitdiff
path: root/keyboards/duck/duck_led/duck_led.h
diff options
context:
space:
mode:
authorAkshay <[email protected]>2022-04-10 12:13:40 +0100
committerAkshay <[email protected]>2022-04-10 12:13:40 +0100
commitdc90387ce7d8ba7b607d9c48540bf6d8b560f14d (patch)
tree4ccb8fa5886b66fa9d480edef74236c27f035e16 /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.h16
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
10enum Device {
11 Device_PCBRGB,
12 Device_STATUSLED
13};
14
15void show(void);
16