oled.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /* Copyright 2022 @toinux
  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. static const char PROGMEM ctrl_icon[2][2][4] = {
  18. {
  19. // off
  20. {0x93, 0x94, 0x95, 0},
  21. {0xB3, 0xB4, 0xB5, 0},
  22. },
  23. {
  24. // on
  25. {0x8F ,0x90, 0x91, 0},
  26. {0xAF ,0xB0, 0xB1, 0},
  27. }
  28. };
  29. static const char PROGMEM shift_icon[2][2][4] = {
  30. {
  31. // off
  32. {0xD3, 0xD4, 0xB5, 0},
  33. {0xA8, 0xA9, 0xD5, 0},
  34. },
  35. {
  36. // on
  37. {0xCF ,0xD0, 0xB1, 0},
  38. {0xC8 ,0xC9, 0xD1, 0},
  39. }
  40. };
  41. static const char PROGMEM gui_icon[2][2][4] = {
  42. {
  43. // off
  44. {0x92, 0x8C, 0x8D, 0},
  45. {0xB2, 0xAC, 0xAD, 0},
  46. },
  47. {
  48. // on
  49. {0x8E ,0x8A, 0x8B, 0},
  50. {0xAE ,0xAA, 0xAB, 0},
  51. }
  52. };
  53. static const char PROGMEM alt_icon[2][2][4] = {
  54. {
  55. // off
  56. {0xB2, 0xCC, 0xCD, 0},
  57. {0xD2, 0x88, 0x89, 0},
  58. },
  59. {
  60. // on
  61. {0xAE ,0xCA, 0xCB, 0},
  62. {0xCE ,0x86, 0x87, 0},
  63. }
  64. };
  65. void set_keylog(uint16_t keycode, keyrecord_t *record);