spidey3_unicode.c 826 B

12345678910111213141516171819202122232425262728
  1. // Copyright 2022 Joshua Diamond josh@windowoffire.com (@spidey3)
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #include "spidey3_unicode.h"
  4. const uint32_t unicode_map[] PROGMEM = {
  5. [BUL1] = 0x2022, // •
  6. [BUL2] = 0x25E6, // ◦
  7. [LARR] = 0x2190, // ←
  8. [RARR] = 0x2192, // →
  9. [ENDASH] = 0x2013, // –
  10. [EMDASH] = 0x2014, // —
  11. [SPIDER] = 0x1F577, // 🕷
  12. [SAD] = 0x2639, // ☹
  13. [MEH] = 0x1F611, // 😑
  14. [HAPPY] = 0x1F600, // 😀
  15. [ANGRY] = 0x1F620, // 😠
  16. [THUMBUP] = 0x1F44D, // 👍
  17. [THUMBDN] = 0x1F44E, // 👎
  18. [LOL] = 0x1F602, // 😂
  19. [SURPRISE] = 0x1F62E, // 😮
  20. };
  21. void eeconfig_init_user_unicode(void) {
  22. // Default to Linux style
  23. set_unicode_input_mode(UNICODE_MODE_LINUX);
  24. }