aboutsummaryrefslogtreecommitdiff
path: root/keyboards/helix/rev1/keymaps/OLED_sample/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/helix/rev1/keymaps/OLED_sample/keymap.c')
-rw-r--r--keyboards/helix/rev1/keymaps/OLED_sample/keymap.c33
1 files changed, 6 insertions, 27 deletions
diff --git a/keyboards/helix/rev1/keymaps/OLED_sample/keymap.c b/keyboards/helix/rev1/keymaps/OLED_sample/keymap.c
index 637f1d169..6bee91786 100644
--- a/keyboards/helix/rev1/keymaps/OLED_sample/keymap.c
+++ b/keyboards/helix/rev1/keymaps/OLED_sample/keymap.c
@@ -41,15 +41,9 @@ enum custom_keycodes {
41 RGBLED_DECREASE_SAT, 41 RGBLED_DECREASE_SAT,
42 RGBLED_INCREASE_VAL, 42 RGBLED_INCREASE_VAL,
43 RGBLED_DECREASE_VAL, 43 RGBLED_DECREASE_VAL,
44 M_SAMPLE
44}; 45};
45 46
46enum macro_keycodes {
47 KC_SAMPLEMACRO,
48};
49
50//Macros
51#define M_SAMPLE M(KC_SAMPLEMACRO)
52
53#if HELIX_ROWS == 5 47#if HELIX_ROWS == 5
54const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 48const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
55 49
@@ -423,6 +417,11 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
423 } 417 }
424 return false; 418 return false;
425 break; 419 break;
420 case M_SAMPLE:
421 if (record->event.pressed) {
422 SEND_STRING("hello world");
423 }
424 return false;
426 } 425 }
427 return true; 426 return true;
428} 427}
@@ -470,23 +469,3 @@ void music_scale_user(void)
470} 469}
471 470
472#endif 471#endif
473
474/*
475 * Macro definition
476 */
477const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt)
478{
479 if (!eeconfig_is_enabled()) {
480 eeconfig_init();
481 }
482
483 switch (id) {
484 case KC_SAMPLEMACRO:
485 if (record->event.pressed){
486 return MACRO (I(10), T(H), T(E), T(L), T(L), T(O), T(SPACE), T(W), T(O), T(R), T(L), T(D), END);
487 }
488
489 }
490
491 return MACRO_NONE;
492}