diff options
| author | spv <spv@spv.sh> | 2025-09-21 00:07:50 -0400 |
|---|---|---|
| committer | spv <spv@spv.sh> | 2025-09-21 00:08:43 -0400 |
| commit | 38d25483657e82eb546ecb8566214f830efba461 (patch) | |
| tree | b9568debc69bffc2595df42266c5550cdf05f3d2 /src/config.h | |
| parent | 9ddf37ad959faaca72f1634dc61439cdd3c585f1 (diff) | |
refactoring ftw (now w/ README updates!)
Diffstat (limited to 'src/config.h')
| -rw-r--r-- | src/config.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h new file mode 100644 index 0000000..c1bb692 --- /dev/null +++ b/src/config.h @@ -0,0 +1,22 @@ +#ifndef CONFIG_H +#define CONFIG_H + +/* time to wait in /dev/input fred loop */ +#define DEBOUNCE (10 MS) + +/* time to wait in backlight setter loop */ +#define THREAD_WAIT (100 MS) + +/* how long to keep the light on */ +#define BACKLIGHT_TIME (10 SEC) + +/* path to keypad evdev */ +#define KEYBOARD_FILE "/dev/input/event1" + +/* path to keyboard's backlight brightness */ +#define BACKLIGHT_FILE "/sys/class/leds/keyboard_light/brightness" + +/* cat `echo $BACKLIGHT_FILE | sed 's/brightness/max_brightness/g'` */ +#define MAX_BRIGHTNESS 255 + +#endif |
