You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

115 lines
4.1 KiB

  1. /* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com>
  2. *
  3. * This program is free software: you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License as published by
  5. * the Free Software Foundation, either version 2 of the License, or
  6. * (at your option) any later version.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #pragma once
  17. #include "quantum.h"
  18. #include "oled_driver.h"
  19. void oled_driver_render_logo(void);
  20. bool process_record_user_oled(uint16_t keycode, keyrecord_t *record);
  21. extern uint32_t oled_timer;
  22. #ifdef OLED_DISPLAY_128X64
  23. # define OLED_RENDER_KEYLOGGER "Keylogger: "
  24. # define OLED_RENDER_LAYOUT_NAME "Layout: "
  25. # define OLED_RENDER_LAYOUT_QWERTY "Qwerty"
  26. # define OLED_RENDER_LAYOUT_COLEMAK "Colemak"
  27. # define OLED_RENDER_LAYOUT_DVORAK "Dvorak"
  28. # define OLED_RENDER_LAYOUT_WORKMAN "Workman"
  29. # define OLED_RENDER_LAYOUT_NORMAN "Norman"
  30. # define OLED_RENDER_LAYOUT_MALTRON "Matron"
  31. # define OLED_RENDER_LAYOUT_EUCALYN "Eucalyn"
  32. # define OLED_RENDER_LAYOUT_CARPLAX "Carplax"
  33. # define OLED_RENDER_LAYER_NAME "Layer:"
  34. # define OLED_RENDER_LAYER_LOWER "Lower"
  35. # define OLED_RENDER_LAYER_RAISE "Raise"
  36. # define OLED_RENDER_LAYER_ADJUST "Adjust"
  37. # define OLED_RENDER_LAYER_MODS "Mods"
  38. # define OLED_RENDER_LOCK_NAME "Lock: "
  39. # define OLED_RENDER_LOCK_NUML "NUML"
  40. # define OLED_RENDER_LOCK_CAPS "CAPS"
  41. # define OLED_RENDER_LOCK_SCLK "SCLK"
  42. # define OLED_RENDER_MODS_NAME "Mods:"
  43. # define OLED_RENDER_MODS_SFT "Sft"
  44. # define OLED_RENDER_MODS_CTL "Ctl"
  45. # define OLED_RENDER_MODS_ALT "Alt"
  46. # define OLED_RENDER_MODS_GUI "GUI"
  47. # define OLED_RENDER_BOOTMAGIC_NAME "Boot "
  48. # define OLED_RENDER_BOOTMAGIC_NKRO "NKRO"
  49. # define OLED_RENDER_BOOTMAGIC_NOGUI "nGUI"
  50. # define OLED_RENDER_BOOTMAGIC_GRV "GRV"
  51. # define OLED_RENDER_BOOTMAGIC_ONESHOT "1SHT"
  52. # define OLED_RENDER_BOOTMAGIC_SWAP "SWAP"
  53. # define OLED_RENDER_BOOTMAGIC_CAPS "CAPS"
  54. # define OLED_RENDER_USER_NAME "USER:"
  55. # define OLED_RENDER_USER_ANIM "Anim"
  56. # define OLED_RENDER_USER_LAYR "Layr"
  57. # define OLED_RENDER_USER_NUKE "Nuke"
  58. # define OLED_RENDER_WPM_COUNTER "WPM: "
  59. #else
  60. # define OLED_RENDER_KEYLOGGER "KLogr"
  61. # define OLED_RENDER_LAYOUT_NAME "Lyout"
  62. # define OLED_RENDER_LAYOUT_QWERTY " QRTY"
  63. # define OLED_RENDER_LAYOUT_COLEMAK " COLE"
  64. # define OLED_RENDER_LAYOUT_DVORAK " DVRK"
  65. # define OLED_RENDER_LAYOUT_WORKMAN " WKMN"
  66. # define OLED_RENDER_LAYOUT_NORMAN " NORM"
  67. # define OLED_RENDER_LAYOUT_MALTRON " MLTN"
  68. # define OLED_RENDER_LAYOUT_EUCALYN " ECLN"
  69. # define OLED_RENDER_LAYOUT_CARPLAX " CRPX"
  70. # define OLED_RENDER_LAYER_NAME "LAYER"
  71. # define OLED_RENDER_LAYER_LOWER "Lower"
  72. # define OLED_RENDER_LAYER_RAISE "Raise"
  73. # define OLED_RENDER_LAYER_ADJUST "Adjst"
  74. # define OLED_RENDER_LAYER_MODS " Mods"
  75. # define OLED_RENDER_LOCK_NAME "Lock:"
  76. # define OLED_RENDER_LOCK_NUML "NumL"
  77. # define OLED_RENDER_LOCK_CAPS "CapL"
  78. # define OLED_RENDER_LOCK_SCLK "ScrL"
  79. # define OLED_RENDER_MODS_NAME "Mods: "
  80. # define OLED_RENDER_MODS_SFT "Shft"
  81. # define OLED_RENDER_MODS_CTL "Ctrl"
  82. # define OLED_RENDER_MODS_ALT "Alt\n"
  83. # define OLED_RENDER_MODS_GUI "GUI\n"
  84. # define OLED_RENDER_BOOTMAGIC_NAME "BTMGK"
  85. # define OLED_RENDER_BOOTMAGIC_NKRO "NKRO"
  86. # define OLED_RENDER_BOOTMAGIC_NOGUI "nGUI"
  87. # define OLED_RENDER_BOOTMAGIC_GRV "GRV"
  88. # define OLED_RENDER_BOOTMAGIC_ONESHOT "1SHT"
  89. # define OLED_RENDER_BOOTMAGIC_SWAP "SWAP"
  90. # define OLED_RENDER_BOOTMAGIC_CAPS "CAPS"
  91. # define OLED_RENDER_USER_NAME "USER:"
  92. # define OLED_RENDER_USER_ANIM "Anim"
  93. # define OLED_RENDER_USER_LAYR "Layr"
  94. # define OLED_RENDER_USER_NUKE "Nuke"
  95. # define OLED_RENDER_WPM_COUNTER "WPM: "
  96. #endif