mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-18 13:42:00 +00:00
Almost finished (working)
Finally
This commit is contained in:
parent
461eeb630f
commit
5427bc26e0
@ -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;
|
||||
}*/
|
||||
}
|
@ -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;
|
||||
}*/
|
||||
}
|
Loading…
Reference in New Issue
Block a user