};
__attribute__ ((weak))
-const bool ascii_to_alt_lut[0x80] PROGMEM = {
+const bool ascii_to_altgr_lut[0x80] PROGMEM = {
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
void send_char(char ascii_code) {
uint8_t keycode = pgm_read_byte(&ascii_to_keycode_lut[(uint8_t)ascii_code]);
bool is_shifted = pgm_read_byte(&ascii_to_shift_lut[(uint8_t)ascii_code]);
- bool is_alted = pgm_read_byte(&ascii_to_alt_lut[(uint8_t)ascii_code]);
+ bool is_altgred = pgm_read_byte(&ascii_to_altgr_lut[(uint8_t)ascii_code]);
if (is_shifted) {
register_code(KC_LSFT);
}
- if (is_alted) {
+ if (is_altgred) {
register_code(KC_RALT);
}
tap_code(keycode);
- if (is_alted) {
+ if (is_altgred) {
unregister_code(KC_RALT);
}
if (is_shifted) {
#define SEND_STRING(str) send_string_P(PSTR(str))
extern const bool ascii_to_shift_lut[0x80];
-extern const bool ascii_to_alt_lut[0x80];
+extern const bool ascii_to_altgr_lut[0x80];
extern const uint8_t ascii_to_keycode_lut[0x80];
void send_string(const char *str);
void send_string_with_delay(const char *str, uint8_t interval);