refactor
parent
e25b4b3bff
commit
a244e9d58d
|
@ -6,7 +6,7 @@
|
|||
# require "muflax"
|
||||
|
||||
LayoutDir = "src/keyboard"
|
||||
LayoutFile = "#{LayoutDir}/layout.c"
|
||||
LayoutFile = "#{LayoutDir}/layout_gen.h"
|
||||
|
||||
puts "generating #{LayoutFile}..."
|
||||
|
||||
|
|
|
@ -46,8 +46,7 @@ typedef void (*void_funptr_t)(void);
|
|||
*/
|
||||
|
||||
#ifndef kb_layout_get
|
||||
extern const uint8_t PROGMEM \
|
||||
_kb_layout[KB_LAYERS][KB_ROWS][KB_COLUMNS];
|
||||
extern const uint8_t PROGMEM _kb_layout[KB_LAYERS][KB_ROWS][KB_COLUMNS];
|
||||
|
||||
#define kb_layout_get(layer,row,column) \
|
||||
( (uint8_t) \
|
||||
|
@ -56,8 +55,7 @@ _kb_layout[KB_LAYERS][KB_ROWS][KB_COLUMNS];
|
|||
#endif
|
||||
|
||||
#ifndef kb_layout_press_get
|
||||
extern const void_funptr_t PROGMEM \
|
||||
_kb_layout_press[KB_LAYERS][KB_ROWS][KB_COLUMNS];
|
||||
extern const void_funptr_t PROGMEM _kb_layout_press[KB_LAYERS][KB_ROWS][KB_COLUMNS];
|
||||
|
||||
#define kb_layout_press_get(layer,row,column) \
|
||||
( (void_funptr_t) \
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
|
||||
#include "./main.h"
|
||||
#include "./keyboard/layout_gen.h"
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue