~ruther/qmk_firmware

ref: 47bc02b2ff84c9a35b8f778a8a1012f737372eea qmk_firmware/keyboards/duck/duck_led/duck_led.h -rw-r--r-- 265 bytes
47bc02b2 — Dasky Force CPI update using timer when using split pointing. (#23545) 1 year, 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#define RES 6000

#define NS_PER_SEC (1000000000L)
#define CYCLES_PER_SEC (F_CPU)
#define NS_PER_CYCLE (NS_PER_SEC / CYCLES_PER_SEC)
#define NS_TO_CYCLES(n) ((n) / NS_PER_CYCLE)

enum Device {
  Device_PCBRGB,
  Device_STATUSLED
};

void show(void);