diff options
| -rw-r--r-- | keyboards/ergodox/keymaps/coderkun_neo2/keymap.c | 2 | ||||
| -rw-r--r-- | keyboards/ergodox/keymaps/twey/keymap.c | 1 | ||||
| -rw-r--r-- | keyboards/planck/keymaps/cbbrowne/config.h | 4 | ||||
| -rw-r--r-- | keyboards/planck/keymaps/unicode/keymap.c | 45 | ||||
| -rw-r--r-- | quantum/keymap_extras/keymap_french.h | 4 |
5 files changed, 39 insertions, 17 deletions
diff --git a/keyboards/ergodox/keymaps/coderkun_neo2/keymap.c b/keyboards/ergodox/keymaps/coderkun_neo2/keymap.c index b62b14449..aaf75d58f 100644 --- a/keyboards/ergodox/keymaps/coderkun_neo2/keymap.c +++ b/keyboards/ergodox/keymaps/coderkun_neo2/keymap.c | |||
| @@ -312,6 +312,8 @@ uint16_t hex_to_keycode(uint8_t hex) | |||
| 312 | return NEO_E; | 312 | return NEO_E; |
| 313 | case 0xF: | 313 | case 0xF: |
| 314 | return NEO_F; | 314 | return NEO_F; |
| 315 | default: | ||
| 316 | return KC_NO; | ||
| 315 | } | 317 | } |
| 316 | } | 318 | } |
| 317 | } | 319 | } |
diff --git a/keyboards/ergodox/keymaps/twey/keymap.c b/keyboards/ergodox/keymaps/twey/keymap.c index 5deacd63f..1ecbce466 100644 --- a/keyboards/ergodox/keymaps/twey/keymap.c +++ b/keyboards/ergodox/keymaps/twey/keymap.c | |||
| @@ -205,6 +205,7 @@ void matrix_init_user(void) { | |||
| 205 | 205 | ||
| 206 | // Runs constantly in the background, in a loop. | 206 | // Runs constantly in the background, in a loop. |
| 207 | void matrix_scan_user(void) { | 207 | void matrix_scan_user(void) { |
| 208 | __attribute__ ((unused)) | ||
| 208 | uint32_t layer0 = layer_state & (1UL << 0), | 209 | uint32_t layer0 = layer_state & (1UL << 0), |
| 209 | layer1 = layer_state & (1UL << 1), | 210 | layer1 = layer_state & (1UL << 1), |
| 210 | layer2 = layer_state & (1UL << 2), | 211 | layer2 = layer_state & (1UL << 2), |
diff --git a/keyboards/planck/keymaps/cbbrowne/config.h b/keyboards/planck/keymaps/cbbrowne/config.h index bd15fd5a2..3a4ee907f 100644 --- a/keyboards/planck/keymaps/cbbrowne/config.h +++ b/keyboards/planck/keymaps/cbbrowne/config.h | |||
| @@ -1,8 +1,12 @@ | |||
| 1 | #ifndef CONFIG_USER_H | 1 | #ifndef CONFIG_USER_H |
| 2 | #define CONFIG_USER_H | 2 | #define CONFIG_USER_H |
| 3 | 3 | ||
| 4 | #ifndef NO_DEBUG | ||
| 4 | #define NO_DEBUG | 5 | #define NO_DEBUG |
| 6 | #endif | ||
| 7 | #ifndef NO_PRINT | ||
| 5 | #define NO_PRINT | 8 | #define NO_PRINT |
| 9 | #endif | ||
| 6 | 10 | ||
| 7 | #include "../../config.h" | 11 | #include "../../config.h" |
| 8 | 12 | ||
diff --git a/keyboards/planck/keymaps/unicode/keymap.c b/keyboards/planck/keymaps/unicode/keymap.c index d73e7e09d..1b4ca8ed7 100644 --- a/keyboards/planck/keymaps/unicode/keymap.c +++ b/keyboards/planck/keymaps/unicode/keymap.c | |||
| @@ -195,24 +195,20 @@ const uint16_t PROGMEM fn_actions[] = { | |||
| 195 | }; | 195 | }; |
| 196 | 196 | ||
| 197 | #ifdef AUDIO_ENABLE | 197 | #ifdef AUDIO_ENABLE |
| 198 | float tone_startup[][2] = { | ||
| 199 | {440.0*pow(2.0,(31)/12.0), 12}, | ||
| 200 | {440.0*pow(2.0,(28)/12.0), 8}, | ||
| 201 | {440.0*pow(2.0,(19)/12.0), 8}, | ||
| 202 | {440.0*pow(2.0,(24)/12.0), 8}, | ||
| 203 | {440.0*pow(2.0,(28)/12.0), 20} | ||
| 204 | }; | ||
| 205 | 198 | ||
| 199 | float tone_startup[][2] = SONG(STARTUP_SOUND); | ||
| 206 | float tone_qwerty[][2] = SONG(QWERTY_SOUND); | 200 | float tone_qwerty[][2] = SONG(QWERTY_SOUND); |
| 207 | float tone_dvorak[][2] = SONG(DVORAK_SOUND); | 201 | float tone_dvorak[][2] = SONG(DVORAK_SOUND); |
| 208 | float tone_colemak[][2] = SONG(COLEMAK_SOUND); | 202 | float tone_colemak[][2] = SONG(COLEMAK_SOUND); |
| 209 | float tone_plover[][2] = SONG(PLOVER_SOUND); | 203 | float tone_plover[][2] = SONG(PLOVER_SOUND); |
| 210 | float tone_plover_gb[][2] = SONG(PLOVER_GOODBYE_SOUND); | 204 | float tone_plover_gb[][2] = SONG(PLOVER_GOODBYE_SOUND); |
| 205 | float music_scale[][2] = SONG(MUSIC_SCALE_SOUND); | ||
| 211 | 206 | ||
| 212 | float goodbye[][2] = SONG(GOODBYE_SOUND); | 207 | float tone_goodbye[][2] = SONG(GOODBYE_SOUND); |
| 213 | #endif | 208 | #endif |
| 214 | 209 | ||
| 215 | 210 | ||
| 211 | |||
| 216 | void persistant_default_layer_set(uint16_t default_layer) { | 212 | void persistant_default_layer_set(uint16_t default_layer) { |
| 217 | eeconfig_update_default_layer(default_layer); | 213 | eeconfig_update_default_layer(default_layer); |
| 218 | default_layer_set(default_layer); | 214 | default_layer_set(default_layer); |
| @@ -309,18 +305,35 @@ const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) | |||
| 309 | }; | 305 | }; |
| 310 | 306 | ||
| 311 | void matrix_init_user(void) { | 307 | void matrix_init_user(void) { |
| 312 | #ifdef AUDIO_ENABLE | 308 | #ifdef AUDIO_ENABLE |
| 313 | _delay_ms(20); // stops the tick | 309 | startup_user(); |
| 314 | PLAY_NOTE_ARRAY(tone_startup, false, 0); | 310 | #endif |
| 315 | #endif | ||
| 316 | } | 311 | } |
| 317 | 312 | ||
| 318 | #ifdef AUDIO_ENABLE | 313 | #ifdef AUDIO_ENABLE |
| 319 | void play_goodbye_tone() | 314 | |
| 315 | void startup_user() | ||
| 320 | { | 316 | { |
| 321 | PLAY_NOTE_ARRAY(goodbye, false, 0); | 317 | _delay_ms(20); // gets rid of tick |
| 322 | _delay_ms(150); | 318 | PLAY_NOTE_ARRAY(tone_startup, false, 0); |
| 319 | } | ||
| 320 | |||
| 321 | void shutdown_user() | ||
| 322 | { | ||
| 323 | PLAY_NOTE_ARRAY(tone_goodbye, false, 0); | ||
| 324 | _delay_ms(150); | ||
| 325 | stop_all_notes(); | ||
| 326 | } | ||
| 327 | |||
| 328 | void music_on_user(void) | ||
| 329 | { | ||
| 330 | music_scale_user(); | ||
| 323 | } | 331 | } |
| 324 | #endif | ||
| 325 | 332 | ||
| 333 | void music_scale_user(void) | ||
| 334 | { | ||
| 335 | PLAY_NOTE_ARRAY(music_scale, false, 0); | ||
| 336 | } | ||
| 337 | |||
| 338 | #endif | ||
| 326 | 339 | ||
diff --git a/quantum/keymap_extras/keymap_french.h b/quantum/keymap_extras/keymap_french.h index 834c69650..401bbdf64 100644 --- a/quantum/keymap_extras/keymap_french.h +++ b/quantum/keymap_extras/keymap_french.h | |||
| @@ -4,7 +4,9 @@ | |||
| 4 | #include "keymap.h" | 4 | #include "keymap.h" |
| 5 | 5 | ||
| 6 | // Alt gr | 6 | // Alt gr |
| 7 | #ifndef ALGR | ||
| 7 | #define ALGR(kc) RALT(kc) | 8 | #define ALGR(kc) RALT(kc) |
| 9 | #endif | ||
| 8 | #define NO_ALGR KC_RALT | 10 | #define NO_ALGR KC_RALT |
| 9 | 11 | ||
| 10 | // Normal characters | 12 | // Normal characters |
| @@ -72,7 +74,7 @@ | |||
| 72 | #define FR_PIPE ALGR(KC_6) | 74 | #define FR_PIPE ALGR(KC_6) |
| 73 | #define FR_GRV ALGR(KC_7) | 75 | #define FR_GRV ALGR(KC_7) |
| 74 | #define FR_BSLS ALGR(KC_8) | 76 | #define FR_BSLS ALGR(KC_8) |
| 75 | #define FR_CIRC ALGR(KC_9) | 77 | #define FR_CCIRC ALGR(KC_9) |
| 76 | #define FR_AT ALGR(KC_0) | 78 | #define FR_AT ALGR(KC_0) |
| 77 | #define FR_RBRC ALGR(FR_RPRN) | 79 | #define FR_RBRC ALGR(FR_RPRN) |
| 78 | #define FR_RCBR ALGR(FR_EQL) | 80 | #define FR_RCBR ALGR(FR_EQL) |
