]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - quantum/quantum.c
split up unicode systems into different files
[qmk_firmware.git] / quantum / quantum.c
index 2088c10c955ea3e21a1e9a88fb62240c4cf81f9e..4a6d0355fabe1590226aa5672ea89d41fe385545 100644 (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];