From 5427bc26e0a04cb50c2685eba1686f8ea0346cd9 Mon Sep 17 00:00:00 2001 From: "DESKTOP-PU0QGTF\\Fer" Date: Thu, 11 Oct 2018 08:24:14 +0200 Subject: [PATCH] Almost finished (working) Finally --- keyboards/handwired/bluepill/keymaps/default/keymap.c | 10 +++++----- keyboards/handwired/bluepill/keymaps/iso/keymap.c | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/keyboards/handwired/bluepill/keymaps/default/keymap.c b/keyboards/handwired/bluepill/keymaps/default/keymap.c index 96eecd814b..83cdc8589a 100644 --- a/keyboards/handwired/bluepill/keymaps/default/keymap.c +++ b/keyboards/handwired/bluepill/keymaps/default/keymap.c @@ -55,10 +55,10 @@ KC_GRAVE, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, const uint16_t PROGMEM fn_actions[] = { [0] = ACTION_LAYER_MOMENTARY(1), // to Fn overlay [1] = ACTION_LAYER_TOGGLE(2), // to Fn overlay - [2] = ACTION_FUNCTION(2), + //[2] = ACTION_FUNCTION(2), }; -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) { case 2: if (record->event.pressed) { @@ -67,10 +67,10 @@ void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) { break; } -} +}*/ /* Layer based ilumination, set min value to 0xFFF */ -/*uint32_t layer_state_set_user(uint32_t state) { +uint32_t layer_state_set_user(uint32_t state) { switch (biton32(state)) { case _FNONE: palClearPad(GPIOA, 0); //ON @@ -86,4 +86,4 @@ void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) { break; } return state; -}*/ \ No newline at end of file +} \ No newline at end of file diff --git a/keyboards/handwired/bluepill/keymaps/iso/keymap.c b/keyboards/handwired/bluepill/keymaps/iso/keymap.c index faf2e8d043..ce7a3d393d 100644 --- a/keyboards/handwired/bluepill/keymaps/iso/keymap.c +++ b/keyboards/handwired/bluepill/keymaps/iso/keymap.c @@ -53,10 +53,10 @@ KC_GRAVE, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, K const uint16_t PROGMEM fn_actions[] = { [0] = ACTION_LAYER_MOMENTARY(1), // to Fn overlay [1] = ACTION_LAYER_TOGGLE(2), // to Fn overlay - [2] = ACTION_FUNCTION(2), + //[2] = ACTION_FUNCTION(2), }; -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) { case 2: if (record->event.pressed) { @@ -65,10 +65,10 @@ void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) { break; } -} +}*/ /* Layer based ilumination, set min value to 0xFFF */ -/*uint32_t layer_state_set_user(uint32_t state) { +uint32_t layer_state_set_user(uint32_t state) { switch (biton32(state)) { case _FNONE: palClearPad(GPIOA, 0); //ON @@ -84,4 +84,4 @@ void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) { break; } return state; -}*/ \ No newline at end of file +} \ No newline at end of file