underglow-layer: enable only if config exists in devicetree

This commit is contained in:
darknao 2024-05-12 23:11:25 +02:00 committed by afiqzudinhadi
parent 0ca086a845
commit da994be0ba
5 changed files with 55 additions and 16 deletions

View file

@ -7,7 +7,6 @@
#pragma once
#include <zmk/keymap.h>
#define ZMK_RGB_CHILD_LEN_PLUS_ONE(node) 1 +
#define ZMK_RGBMAP_LAYERS_LEN \
@ -15,4 +14,5 @@
const int zmk_rgbmap_id(uint8_t layer);
uint32_t *rgb_underglow_get_bindings(uint8_t layer);
uint8_t rgb_underglow_top_layer_with_state(uint32_t state_to_test);
uint8_t rgb_underglow_top_layer_with_state(uint32_t state_to_test);
uint8_t rgb_underglow_top_layer(void);

View file

@ -1,4 +1,5 @@
#pragma once
void set_peripheral_layers_state(uint32_t new_layers);
bool peripheral_layer_active(uint8_t layer);
bool peripheral_layer_active(uint8_t layer);
uint8_t peripheral_highest_layer_active(void);