1
0

cleanup spacing

This commit is contained in:
di0ib 2016-09-17 08:22:27 -10:00
parent 0448cf3394
commit fe97a8eba0
3 changed files with 22 additions and 26 deletions

View File

@ -34,16 +34,16 @@ void gnaplight_toggle(void);
void gnaplight_step(void); void gnaplight_step(void);
#define KEYMAP( \ #define KEYMAP( \
k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, \ k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, \
k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, \ k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, \
k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, \ k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, \
k30, k31, k32, k33, k34, k35, k37, k38, k39, k3a, k3b \ k30, k31, k32, k33, k34, k35, k37, k38, k39, k3a, k3b \
) \ ) \
{ \ { \
{ k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b }, \ { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b }, \
{ k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b }, \ { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b }, \
{ k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b }, \ { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b }, \
{ k30, k31, k32, k33, k34, k35, k35, k37, k38, k39, k3a, k3b } \ { k30, k31, k32, k33, k34, k35, k35, k37, k38, k39, k3a, k3b } \
} }
#endif #endif

View File

@ -55,23 +55,19 @@ const action_t PROGMEM fn_actions[] = {
[2] = ACTION_LAYER_TAP_KEY(3, KC_TAB), [2] = ACTION_LAYER_TAP_KEY(3, KC_TAB),
[3] = ACTION_FUNCTION(GNAPLED_TOGGLE), [3] = ACTION_FUNCTION(GNAPLED_TOGGLE),
[4] = ACTION_FUNCTION(GNAPLED_STEP_MODE), [4] = ACTION_FUNCTION(GNAPLED_STEP_MODE),
[5] = ACTION_MODS_KEY(MOD_LSFT, KC_GRV), [5] = ACTION_MODS_KEY(MOD_LSFT, KC_GRV),
[6] = ACTION_MODS_KEY(MOD_LSFT, KC_1), [6] = ACTION_MODS_KEY(MOD_LSFT, KC_1),
[7] = ACTION_MODS_KEY(MOD_LSFT, KC_2), [7] = ACTION_MODS_KEY(MOD_LSFT, KC_2),
[8] = ACTION_MODS_KEY(MOD_LSFT, KC_3), [8] = ACTION_MODS_KEY(MOD_LSFT, KC_3),
[9] = ACTION_MODS_KEY(MOD_LSFT, KC_4), [9] = ACTION_MODS_KEY(MOD_LSFT, KC_4),
[10] = ACTION_MODS_KEY(MOD_LSFT, KC_5), [10] = ACTION_MODS_KEY(MOD_LSFT, KC_5),
[11] = ACTION_MODS_KEY(MOD_LSFT, KC_6), [11] = ACTION_MODS_KEY(MOD_LSFT, KC_6),
[12] = ACTION_MODS_KEY(MOD_LSFT, KC_7), [12] = ACTION_MODS_KEY(MOD_LSFT, KC_7),
[13] = ACTION_MODS_KEY(MOD_LSFT, KC_8), [13] = ACTION_MODS_KEY(MOD_LSFT, KC_8),
[14] = ACTION_MODS_KEY(MOD_LSFT, KC_9), [14] = ACTION_MODS_KEY(MOD_LSFT, KC_9),
[15] = ACTION_MODS_KEY(MOD_LSFT, KC_0), [15] = ACTION_MODS_KEY(MOD_LSFT, KC_0),
}; };
void matrix_init_user(void) {
}
void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) { void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) {
switch (id) { switch (id) {
case GNAPLED_TOGGLE: case GNAPLED_TOGGLE:
@ -89,9 +85,9 @@ void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) {
//GNAP keymap functions //GNAP keymap functions
void gnaplight_step(void) { void gnaplight_step(void) {
serial_send(101); serial_send(101);
} }
void gnaplight_toggle(void) { void gnaplight_toggle(void) {
serial_send(100); serial_send(100);
} }

View File

@ -142,7 +142,7 @@ void keyboard_task(void)
// record a processed key // record a processed key
matrix_prev[r] ^= ((matrix_row_t)1<<c); matrix_prev[r] ^= ((matrix_row_t)1<<c);
#ifdef GNAP_ENABLE #ifdef GNAP_ENABLE
//send single byte with value of row column //send single byte with value of row column
serial_send((r*16)+c); serial_send((r*16)+c);
#endif #endif
// process a key per task call // process a key per task call