logo

qmk_firmware

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

blue_team_pad.c (1050B)


  1. // Copyright 2022-2023 Thomas Autiello Jr (@fearherbs1)
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #include "quantum.h"
  4. #ifdef OLED_ENABLE
  5. bool oled_task_kb(void) {
  6. if (!oled_task_user()) {
  7. return false;
  8. }
  9. // Host Keyboard Layer Status
  10. oled_write_P(PSTR("Blue Team Pad \nCurrent Layer: "), false);
  11. switch (get_highest_layer(layer_state)) {
  12. case 0:
  13. oled_write_P(PSTR("0\n"), false);
  14. break;
  15. case 1:
  16. oled_write_P(PSTR("1\n"), false);
  17. break;
  18. case 2:
  19. oled_write_P(PSTR("2\n"), false);
  20. break;
  21. case 3:
  22. oled_write_P(PSTR("3\n"), false);
  23. break;
  24. case 4:
  25. oled_write_P(PSTR("4\n"), false);
  26. break;
  27. case 5:
  28. oled_write_P(PSTR("5\n"), false);
  29. break;
  30. default:
  31. // Or use the write_ln shortcut over adding '\n' to the end of your string
  32. oled_write_ln_P(PSTR("Undefined"), false);
  33. }
  34. return false;
  35. }
  36. #endif