1
0
Fork 0

split up unicode systems into different files

This commit is contained in:
Jack Humbert 2017-02-15 16:36:31 -05:00
parent 6788cbd762
commit cbabb4d417
9 changed files with 253 additions and 239 deletions

View file

@ -972,6 +972,19 @@ void send_nibble(uint8_t number) {
}
}
__attribute__((weak))
uint16_t hex_to_keycode(uint8_t hex)
{
if (hex == 0x0) {
return KC_0;
} else if (hex < 0xA) {
return KC_1 + (hex - 0x1);
} else {
return KC_A + (hex - 0xA);
}
}
void api_send_unicode(uint32_t unicode) {
#ifdef API_ENABLE
uint8_t chunk[4];