diff options
author | Ryan <fauxpark@gmail.com> | 2021-03-12 18:03:44 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-12 18:03:44 +1100 |
commit | 88dce243750d9e80948cd7262566182018d7bbdf (patch) | |
tree | 01fef7490b57303772b58c6cd0986c6d38b372f5 /quantum/send_string.h | |
parent | ea2a7c5ea4c4509ea7008a835eb9b98b0b1c05d6 (diff) | |
download | qmk_firmware-88dce243750d9e80948cd7262566182018d7bbdf.tar.gz qmk_firmware-88dce243750d9e80948cd7262566182018d7bbdf.zip |
Remove hex_to_keycode and move tap_random_base64 to send_string.c (#12079)
Diffstat (limited to 'quantum/send_string.h')
-rw-r--r-- | quantum/send_string.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/quantum/send_string.h b/quantum/send_string.h index 570522eb0..b90e6f689 100644 --- a/quantum/send_string.h +++ b/quantum/send_string.h | |||
@@ -23,10 +23,10 @@ | |||
23 | #define SEND_STRING_DELAY(string, interval) send_string_with_delay_P(PSTR(string), interval) | 23 | #define SEND_STRING_DELAY(string, interval) send_string_with_delay_P(PSTR(string), interval) |
24 | 24 | ||
25 | // Look-Up Tables (LUTs) to convert ASCII character to keycode sequence. | 25 | // Look-Up Tables (LUTs) to convert ASCII character to keycode sequence. |
26 | extern const uint8_t ascii_to_keycode_lut[128]; | ||
27 | extern const uint8_t ascii_to_shift_lut[16]; | 26 | extern const uint8_t ascii_to_shift_lut[16]; |
28 | extern const uint8_t ascii_to_altgr_lut[16]; | 27 | extern const uint8_t ascii_to_altgr_lut[16]; |
29 | extern const uint8_t ascii_to_dead_lut[16]; | 28 | extern const uint8_t ascii_to_dead_lut[16]; |
29 | extern const uint8_t ascii_to_keycode_lut[128]; | ||
30 | 30 | ||
31 | // clang-format off | 31 | // clang-format off |
32 | #define KCLUT_ENTRY(a, b, c, d, e, f, g, h) \ | 32 | #define KCLUT_ENTRY(a, b, c, d, e, f, g, h) \ |
@@ -45,3 +45,10 @@ void send_string_with_delay(const char *str, uint8_t interval); | |||
45 | void send_string_P(const char *str); | 45 | void send_string_P(const char *str); |
46 | void send_string_with_delay_P(const char *str, uint8_t interval); | 46 | void send_string_with_delay_P(const char *str, uint8_t interval); |
47 | void send_char(char ascii_code); | 47 | void send_char(char ascii_code); |
48 | |||
49 | void send_dword(uint32_t number); | ||
50 | void send_word(uint16_t number); | ||
51 | void send_byte(uint8_t number); | ||
52 | void send_nibble(uint8_t number); | ||
53 | |||
54 | void tap_random_base64(void); | ||