mirror of
https://github.com/qmk/qmk_firmware
synced 2024-11-13 15:35:27 +00:00
Change _delay_ms to wait_ms in algernon keymap
This commit is contained in:
parent
e7670f6d19
commit
1641743b9d
1 changed files with 1217 additions and 1216 deletions
|
@ -11,6 +11,7 @@
|
|||
#include "timer.h"
|
||||
#include "keymap_plover.h"
|
||||
#include "eeconfig.h"
|
||||
#include "wait.h"
|
||||
|
||||
/* Layers */
|
||||
|
||||
|
@ -858,12 +859,12 @@ void matrix_init_user(void) {
|
|||
ergodox_led_all_on();
|
||||
for (int i = LED_BRIGHTNESS_HI; i > LED_BRIGHTNESS_LO; i--) {
|
||||
ergodox_led_all_set (i);
|
||||
_delay_ms (5);
|
||||
wait_ms (5);
|
||||
}
|
||||
_delay_ms(1000);
|
||||
wait_ms(1000);
|
||||
for (int i = LED_BRIGHTNESS_LO; i > 0; i--) {
|
||||
ergodox_led_all_set (i);
|
||||
_delay_ms (10);
|
||||
wait_ms (10);
|
||||
}
|
||||
ergodox_led_all_off();
|
||||
|
||||
|
@ -883,14 +884,14 @@ void ang_do_unicode (void) {
|
|||
unregister_code (KC_U);
|
||||
unregister_code (KC_RSFT);
|
||||
unregister_code (KC_RCTL);
|
||||
_delay_ms (100);
|
||||
wait_ms (100);
|
||||
}
|
||||
|
||||
void ang_tap (uint16_t codes[]) {
|
||||
for (int i = 0; codes[i] != 0; i++) {
|
||||
register_code (codes[i]);
|
||||
unregister_code (codes[i]);
|
||||
_delay_ms (50);
|
||||
wait_ms (50);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1079,7 +1080,7 @@ void matrix_scan_user(void) {
|
|||
#if KEYLOGGER_ENABLE
|
||||
SEQ_ONE_KEY (KC_D) {
|
||||
ergodox_led_all_on();
|
||||
_delay_ms(100);
|
||||
wait_ms(100);
|
||||
ergodox_led_all_off();
|
||||
log_enable = !log_enable;
|
||||
}
|
||||
|
@ -1126,7 +1127,7 @@ void matrix_scan_user(void) {
|
|||
unregister_code (KC_F2);
|
||||
unregister_code (KC_LALT);
|
||||
|
||||
_delay_ms (1000);
|
||||
wait_ms (1000);
|
||||
|
||||
uint16_t codes[] = {KC_M, KC_A, KC_X, KC_MINS, KC_F, KC_O, KC_C, KC_U, KC_S, KC_E, KC_D, KC_ENT, 0};
|
||||
ang_tap (codes);
|
||||
|
@ -1145,14 +1146,14 @@ void matrix_scan_user(void) {
|
|||
|
||||
ergodox_led_all_off ();
|
||||
ergodox_right_led_3_on ();
|
||||
_delay_ms (100);
|
||||
wait_ms (100);
|
||||
ergodox_right_led_2_on ();
|
||||
_delay_ms (100);
|
||||
wait_ms (100);
|
||||
ergodox_right_led_3_off ();
|
||||
ergodox_right_led_1_on ();
|
||||
_delay_ms (100);
|
||||
wait_ms (100);
|
||||
ergodox_right_led_2_off ();
|
||||
_delay_ms (100);
|
||||
wait_ms (100);
|
||||
ergodox_right_led_1_off ();
|
||||
} else {
|
||||
is_adore = 0;
|
||||
|
@ -1162,14 +1163,14 @@ void matrix_scan_user(void) {
|
|||
|
||||
ergodox_led_all_off ();
|
||||
ergodox_right_led_1_on ();
|
||||
_delay_ms (100);
|
||||
wait_ms (100);
|
||||
ergodox_right_led_2_on ();
|
||||
_delay_ms (100);
|
||||
wait_ms (100);
|
||||
ergodox_right_led_1_off ();
|
||||
ergodox_right_led_3_on ();
|
||||
_delay_ms (100);
|
||||
wait_ms (100);
|
||||
ergodox_right_led_2_off ();
|
||||
_delay_ms (100);
|
||||
wait_ms (100);
|
||||
ergodox_right_led_3_off ();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue