2022-07-20 19:09:10 -07:00
|
|
|
#pragma once
|
|
|
|
// This header declares custom keycodes
|
|
|
|
#include "keymap.h"
|
|
|
|
|
2022-07-19 08:45:18 -07:00
|
|
|
#define LAYER_INCLUDE_FILE "definitions/layers.inc"
|
|
|
|
|
|
|
|
// Generate layer ids
|
|
|
|
#define BETA_LAYER_KEYS
|
|
|
|
#define BETA_LAYER(name) LAYER_##name,
|
|
|
|
enum layer_indices {
|
|
|
|
#include LAYER_INCLUDE_FILE
|
|
|
|
X_LAYER_MAX
|
|
|
|
};
|
|
|
|
#undef BETA_LAYER
|
|
|
|
#undef BETA_LAYER_KEYS
|
|
|
|
|
|
|
|
|
|
|
|
// Generate RGBMatrix ids
|
|
|
|
// We don't use the same id for layers and layer colors
|
|
|
|
// to save memory. Not every layer has colors!
|
|
|
|
#define BETA_LAYER_LEDS
|
|
|
|
#define BETA_LAYER(name) LAYER_##name##_LEDS,
|
|
|
|
enum led_indices {
|
|
|
|
#include LAYER_INCLUDE_FILE
|
|
|
|
X_LAYER_LEDS_MAX
|
|
|
|
};
|
|
|
|
#undef BETA_LAYER
|
|
|
|
#undef BETA_LAYER_LEDS
|
|
|
|
|
|
|
|
|
|
|
|
// We don't need these in the header,
|
|
|
|
// they shouldn't be used anywhere else.
|
|
|
|
//const uint16_t PROGMEM keymaps[X_LAYER_MAX][MATRIX_ROWS][MATRIX_COLS];
|
|
|
|
//const uint8_t PROGMEM ledmaps[X_LAYER_LEDS_MAX][DRIVER_LED_TOTAL][3];
|
|
|
|
|
2022-07-21 14:09:50 -07:00
|
|
|
extern uint8_t layer_layouts[];
|
2022-07-19 08:45:18 -07:00
|
|
|
|
2022-07-21 17:49:35 -07:00
|
|
|
void set_layer_color(int layer); // Helper method
|
|
|
|
void rgb_matrix_indicators_user(void); // QMK method
|
|
|
|
uint32_t layer_state_set_user(uint32_t state); // QMK method
|
2022-07-19 08:45:18 -07:00
|
|
|
|