summaryrefslogtreecommitdiff
path: root/keyboards/lfkeyboards/smk65/revb
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/lfkeyboards/smk65/revb')
-rw-r--r--keyboards/lfkeyboards/smk65/revb/revb.c56
-rw-r--r--keyboards/lfkeyboards/smk65/revb/revb.h13
2 files changed, 0 insertions, 69 deletions
diff --git a/keyboards/lfkeyboards/smk65/revb/revb.c b/keyboards/lfkeyboards/smk65/revb/revb.c
index 01c339f06b..9b34eff1c3 100644
--- a/keyboards/lfkeyboards/smk65/revb/revb.c
+++ b/keyboards/lfkeyboards/smk65/revb/revb.c
@@ -81,62 +81,6 @@ bool process_record_kb(uint16_t keycode, keyrecord_t* record)
return process_record_user(keycode, record);
}
-void action_function(keyrecord_t *event, uint8_t id, uint8_t opt)
-{
-#ifdef AUDIO_ENABLE
- int8_t sign = 1;
-#endif
- if(id == LFK_ESC_TILDE){
- // Send ~ on shift-esc
- void (*method)(uint8_t) = (event->event.pressed) ? &add_key : &del_key;
- uint8_t shifted = get_mods() & (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT));
- method(shifted ? KC_GRAVE : KC_ESCAPE);
- send_keyboard_report();
- }else if(event->event.pressed){
- switch(id){
- case LFK_SET_DEFAULT_LAYER:
- // set/save the current base layer to eeprom, falls through to LFK_CLEAR
- eeconfig_update_default_layer(1UL << opt);
- default_layer_set(1UL << opt);
- case LFK_CLEAR:
- // Go back to default layer
- layer_clear();
- break;
-#ifdef AUDIO_ENABLE
- case LFK_CLICK_FREQ_LOWER:
- sign = -1; // continue to next statement
- case LFK_CLICK_FREQ_HIGHER:
- click_hz += sign * 100;
- click(click_hz, click_time);
- break;
- case LFK_CLICK_TOGGLE:
- if(click_toggle){
- click_toggle = 0;
- click(4000, 100);
- click(1000, 100);
- }else{
- click_toggle = 1;
- click(1000, 100);
- click(4000, 100);
- }
- break;
- case LFK_CLICK_TIME_SHORTER:
- sign = -1; // continue to next statement
- case LFK_CLICK_TIME_LONGER:
- click_time += sign;
- click(click_hz, click_time);
- break;
-#endif
- case LFK_DEBUG_SETTINGS:
- dprintf("Click:\n");
- dprintf(" toggle: %d\n", click_toggle);
- dprintf(" freq(hz): %d\n", click_hz);
- dprintf(" duration(ms): %d\n", click_time);
- break;
- }
- }
-}
-
void reset_keyboard_kb(){
#ifdef WATCHDOG_ENABLE
MCUSR = 0;
diff --git a/keyboards/lfkeyboards/smk65/revb/revb.h b/keyboards/lfkeyboards/smk65/revb/revb.h
index dbb25b869a..28fed40aa2 100644
--- a/keyboards/lfkeyboards/smk65/revb/revb.h
+++ b/keyboards/lfkeyboards/smk65/revb/revb.h
@@ -33,19 +33,6 @@ typedef struct Layer_Info {
extern const uint32_t layer_count;
extern const Layer_Info layer_info[];
-enum action_functions {
- LFK_CLEAR = 0, // Resets all layers
- LFK_ESC_TILDE, // esc+lshift = ~
- LFK_SET_DEFAULT_LAYER, // changes and saves current base layer to eeprom
- LFK_CLICK_TOGGLE, // Adjusts click duration
- LFK_CLICK_FREQ_HIGHER, // Adjusts click frequency
- LFK_CLICK_FREQ_LOWER, // Adjusts click frequency
- LFK_CLICK_TIME_LONGER, // Adjusts click duration
- LFK_CLICK_TIME_SHORTER, // Adjusts click duration
- LFK_DEBUG_SETTINGS, // prints LED and click settings to HID
- LFK_LED_TEST // cycles through switch and RGB LEDs
-};
-
#define CLICK_HZ 500
#define CLICK_MS 2
#define CLICK_ENABLED 0