logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

meow48.c (3564B)


  1. /* Copyright 2022 tsubuan145
  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. #include "quantum.h"
  17. #ifdef OLED_ENABLE
  18. oled_rotation_t oled_init_kb(oled_rotation_t rotation) {
  19. return OLED_ROTATION_180;
  20. }
  21. bool oled_task_kb(void) {
  22. if (!oled_task_user()) { return false; }
  23. oled_write_P(PSTR("Layer:"), false);
  24. oled_write_ln(get_u8_str(get_highest_layer(layer_state), ' '), false);
  25. static const char PROGMEM my_logo[] = {
  26. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  27. 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x80, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x80,
  28. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x80, 0x00, 0x00,
  29. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x80, 0x00, 0x00, 0x00,
  30. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00,
  31. 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80,
  32. 0xe0, 0xf0, 0xf8, 0xfc, 0xfc, 0xfc, 0xf8, 0xf0, 0x00, 0x00, 0x00, 0x80, 0xc0, 0xf8, 0xfe, 0xff,
  33. 0xff, 0xfe, 0x7c, 0x7c, 0xfe, 0xff, 0xff, 0xfe, 0xf8, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  34. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  35. 0x00, 0xfc, 0xfe, 0xff, 0xff, 0xff, 0xff, 0x3f, 0x3f, 0xff, 0xfe, 0xfe, 0xff, 0x3f, 0x3f, 0xff,
  36. 0xff, 0xfe, 0xfc, 0xf8, 0x00, 0xe0, 0xf0, 0xfc, 0xfe, 0xff, 0xff, 0xcf, 0xcf, 0xcf, 0xcf, 0xff,
  37. 0xfe, 0xfc, 0xf8, 0x00, 0xf0, 0xf8, 0xfc, 0xfe, 0xfe, 0xff, 0x7f, 0x3f, 0x7f, 0xff, 0xfe, 0xfe,
  38. 0xfc, 0xf8, 0xf0, 0x00, 0x3c, 0xfe, 0xff, 0xff, 0xfe, 0xfc, 0xf8, 0xfc, 0xff, 0xff, 0xff, 0xff,
  39. 0xfe, 0xfc, 0xf8, 0xfe, 0xff, 0xff, 0xff, 0xff, 0x00, 0x80, 0xe0, 0xf8, 0xfc, 0xfe, 0xff, 0xff,
  40. 0xff, 0x9f, 0x9f, 0xff, 0xff, 0xff, 0xff, 0xff, 0x80, 0x00, 0x80, 0xcf, 0xff, 0xff, 0xff, 0xff,
  41. 0xff, 0xfc, 0x78, 0x78, 0xfc, 0xff, 0xff, 0xff, 0xff, 0xff, 0xcf, 0x00, 0x00, 0x00, 0x00, 0x00,
  42. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  43. 0x00, 0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00, 0xff,
  44. 0xff, 0xff, 0xff, 0x7f, 0x00, 0x0f, 0x1f, 0x7f, 0x7f, 0xff, 0xff, 0xff, 0xf9, 0xf9, 0xf9, 0xf9,
  45. 0xf9, 0x71, 0x00, 0x00, 0x1f, 0x3f, 0x7f, 0xff, 0xff, 0xfe, 0xfc, 0xf8, 0xfc, 0xfe, 0xff, 0xff,
  46. 0x7f, 0x3f, 0x1f, 0x00, 0x00, 0x0f, 0x3f, 0x7f, 0xff, 0xff, 0xff, 0x7f, 0x3f, 0x0f, 0x0f, 0x3f,
  47. 0x7f, 0xff, 0xff, 0xff, 0x7f, 0x3f, 0x0f, 0x01, 0x06, 0x07, 0x0f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f,
  48. 0x1f, 0x3f, 0x7f, 0xff, 0xff, 0xff, 0x7f, 0x3f, 0x1f, 0x0f, 0x07, 0x1f, 0x3f, 0x7f, 0x7f, 0xff,
  49. 0xff, 0xfc, 0xf8, 0xf8, 0xfc, 0xff, 0xff, 0x7f, 0x7f, 0x7f, 0x7f, 0x78, 0x38, 0x3e, 0x1f, 0x00
  50. };
  51. oled_write_raw_P(my_logo, sizeof(my_logo));
  52. return false;
  53. }
  54. #endif