logo

qmk_firmware

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

unicorne.c (548B)


  1. // Copyright 2024 jack (@waffle87)
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #include "quantum.h"
  4. #include "lib/oled.h"
  5. #ifdef OLED_ENABLE
  6. oled_rotation_t oled_init_kb(oled_rotation_t rotation) {
  7. if (!is_keyboard_master()) {
  8. return OLED_ROTATION_180;
  9. }
  10. return rotation;
  11. }
  12. bool oled_task_kb(void) {
  13. if (!oled_task_user()) {
  14. return false;
  15. }
  16. if (is_keyboard_master()) {
  17. render_layer_state();
  18. } else {
  19. oled_write_raw_P(bs_logo_img, sizeof(bs_logo_img));
  20. }
  21. return false;
  22. }
  23. #endif