kbled: Check if using white or RGB keyboard
Use RGBKB-DET# to determine the type of keyboard connected. If a white keyboard is attached, always set the color to white, and always return white for the color. Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
committed by
Jeremy Soller
parent
c71a58f7cf
commit
598aef8c4a
@ -3,6 +3,8 @@
|
||||
#include <board/kbled.h>
|
||||
#include <common/macro.h>
|
||||
|
||||
enum KbledKind kbled_kind = KBLED_NONE;
|
||||
|
||||
// clang-format off
|
||||
static uint8_t LEVEL_I = 1;
|
||||
static const uint8_t __code LEVELS[] = {
|
||||
|
Reference in New Issue
Block a user