123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #include <stdint.h>
- #include "progmem.h"
- #include "send_string_keycodes.h"
- #define SEND_STRING(string) send_string_P(PSTR(string))
- #define SEND_STRING_DELAY(string, interval) send_string_with_delay_P(PSTR(string), interval)
- extern const uint8_t ascii_to_shift_lut[16];
- extern const uint8_t ascii_to_altgr_lut[16];
- extern const uint8_t ascii_to_dead_lut[16];
- extern const uint8_t ascii_to_keycode_lut[128];
- #define KCLUT_ENTRY(a, b, c, d, e, f, g, h) \
- ( ((a) ? 1 : 0) << 0 \
- | ((b) ? 1 : 0) << 1 \
- | ((c) ? 1 : 0) << 2 \
- | ((d) ? 1 : 0) << 3 \
- | ((e) ? 1 : 0) << 4 \
- | ((f) ? 1 : 0) << 5 \
- | ((g) ? 1 : 0) << 6 \
- | ((h) ? 1 : 0) << 7 )
- void send_string(const char *str);
- void send_string_with_delay(const char *str, uint8_t interval);
- void send_string_P(const char *str);
- void send_string_with_delay_P(const char *str, uint8_t interval);
- void send_char(char ascii_code);
- void send_dword(uint32_t number);
- void send_word(uint16_t number);
- void send_byte(uint8_t number);
- void send_nibble(uint8_t number);
- void tap_random_base64(void);
|