aboutsummaryrefslogtreecommitdiffstats
path: root/quantum/quantum.c
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2017-02-15 16:36:31 -0500
committerJack Humbert <jack.humb@gmail.com>2017-02-15 16:36:31 -0500
commitcbabb4d417ef58f5d484dc256b637f61619efaa8 (patch)
tree01ed906acd8ef81a213385697599cee3ac2f68de /quantum/quantum.c
parent6788cbd76291e1f3103a350598f7bf5d523a7310 (diff)
downloadfirmware-cbabb4d417ef58f5d484dc256b637f61619efaa8.tar.gz
firmware-cbabb4d417ef58f5d484dc256b637f61619efaa8.tar.bz2
firmware-cbabb4d417ef58f5d484dc256b637f61619efaa8.zip
split up unicode systems into different files
Diffstat (limited to 'quantum/quantum.c')
-rw-r--r--quantum/quantum.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c
index 2088c10c9..4a6d0355f 100644
--- a/quantum/quantum.c
+++ b/quantum/quantum.c
@@ -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];