|
|
@ -27,12 +27,14 @@ extern uint8_t is_master;
|
|
|
|
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
|
|
|
// The underscores don't mean anything - you can have a layer called STUFF or any other name.
|
|
|
|
// Layer names don't all need to be of the same length, obviously, and you can also skip them
|
|
|
|
// Layer names don't all need to be of the same length, obviously, and you can also skip them
|
|
|
|
// entirely and just use numbers.
|
|
|
|
// entirely and just use numbers.
|
|
|
|
#define _QWERTY 0
|
|
|
|
enum layer_number {
|
|
|
|
#define _COLEMAK 1
|
|
|
|
_QWERTY = 0,
|
|
|
|
#define _DVORAK 2
|
|
|
|
_COLEMAK,
|
|
|
|
#define _LOWER 3
|
|
|
|
_DVORAK,
|
|
|
|
#define _RAISE 4
|
|
|
|
_LOWER,
|
|
|
|
#define _ADJUST 16
|
|
|
|
_RAISE,
|
|
|
|
|
|
|
|
_ADJUST
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
enum custom_keycodes {
|
|
|
|
enum custom_keycodes {
|
|
|
|
QWERTY = SAFE_RANGE,
|
|
|
|
QWERTY = SAFE_RANGE,
|
|
|
@ -526,15 +528,10 @@ void matrix_update(struct CharacterMatrix *dest,
|
|
|
|
|
|
|
|
|
|
|
|
//assign the right code to your layers for OLED display
|
|
|
|
//assign the right code to your layers for OLED display
|
|
|
|
#define L_BASE 0
|
|
|
|
#define L_BASE 0
|
|
|
|
#define L_LOWER 8
|
|
|
|
#define L_LOWER (1<<_LOWER)
|
|
|
|
#define L_RAISE 16
|
|
|
|
#define L_RAISE (1<<_RAISE)
|
|
|
|
#define L_FNLAYER 64
|
|
|
|
#define L_ADJUST (1<<_ADJUST)
|
|
|
|
#define L_NUMLAY 128
|
|
|
|
#define L_ADJUST_TRI (L_ADJUST|L_RAISE|L_LOWER)
|
|
|
|
#define L_NLOWER 136
|
|
|
|
|
|
|
|
#define L_NFNLAYER 192
|
|
|
|
|
|
|
|
#define L_MOUSECURSOR 256
|
|
|
|
|
|
|
|
#define L_ADJUST 65536
|
|
|
|
|
|
|
|
#define L_ADJUST_TRI 65560
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static void render_logo(struct CharacterMatrix *matrix) {
|
|
|
|
static void render_logo(struct CharacterMatrix *matrix) {
|
|
|
|
|
|
|
|
|
|
|
|