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:
Tim Crawford
2023-05-19 17:46:39 -06:00
committed by Jeremy Soller
parent c71a58f7cf
commit 598aef8c4a
7 changed files with 52 additions and 0 deletions

View File

@ -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[] = {