From 230807bbd3986a38c647ca32d2ea6e6420c674a9 Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Fri, 31 Mar 2023 09:32:19 -0600 Subject: [PATCH] Changing Keyboard to default Mac. updating to version 5.1.5 --- .vscode/c_cpp_properties.json | 5 +++-- README.md | 2 +- keymap.c | 13 +++++++------ 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json index 2e1a7ea..e41cc72 100644 --- a/.vscode/c_cpp_properties.json +++ b/.vscode/c_cpp_properties.json @@ -3,11 +3,12 @@ { "name": "Mac", "includePath": [ - "${workspaceFolder}/**" + "${workspaceFolder}/**", + "/usr/local/Cellar/boost/1.81.0_1/include/boost/predef" ], "defines": [], "macFrameworkPath": [], - "compilerPath": "/opt/homebrew/bin/arm-none-eabi-gcc", + "compilerPath": "/usr/bin/clang++", "cStandard": "gnu17", "cppStandard": "gnu++14", "intelliSenseMode": "macos-gcc-arm" diff --git a/README.md b/README.md index f78ccff..eb0fb57 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ # Configuracion de teclado Corne Aleleba En este repositorio se encuentra el código del teclado Corne Aleleba. -Version: 5.1.4 \ No newline at end of file +Version: 5.1.5 \ No newline at end of file diff --git a/keymap.c b/keymap.c index 2060805..92ff5fe 100644 --- a/keymap.c +++ b/keymap.c @@ -51,9 +51,9 @@ enum { TD_0, }; -bool isWindows = true; // Change to make default config Windows +bool isWindows = false; // Change to make default config Windows -void dance_ctn_finished (qk_tap_dance_state_t *state, void *user_data) { +void dance_ctn_finished (tap_dance_state_t *state, void *user_data) { if (state->count == 1) { if (isWindows == true) { register_code (KC_LCTL); @@ -77,7 +77,7 @@ void dance_ctn_finished (qk_tap_dance_state_t *state, void *user_data) { } } } -void dance_ctn_reset (qk_tap_dance_state_t *state, void *user_data) { +void dance_ctn_reset (tap_dance_state_t *state, void *user_data) { if (state->count == 1) { if (isWindows == true) { unregister_code (KC_LCTL); @@ -96,7 +96,7 @@ void dance_ctn_reset (qk_tap_dance_state_t *state, void *user_data) { } } -qk_tap_dance_action_t tap_dance_actions[] = { +tap_dance_action_t tap_dance_actions[] = { // tap twice for change [TD_CTN] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, dance_ctn_finished, dance_ctn_reset), [TD_BRC] = ACTION_TAP_DANCE_DOUBLE(ES_LCBR, ES_RCBR), @@ -298,7 +298,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { #endif // OLED_ENABLE // RGB LAYER CONFIGURATION -void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) { +bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) { for (uint8_t i = led_min; i <= led_max; i++) { switch(get_highest_layer(layer_state|default_layer_state)) { case 1: @@ -322,7 +322,7 @@ void rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) { } break; default: - if (isWindows == false){ // Change to false if main config is Mac + if (isWindows != false){ // Change to false if main config is Mac rgb_matrix_set_color(26, RGB_WHITE); } if (host_keyboard_leds() & (1<