oled_helper.h 968 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #pragma once
  2. #ifdef OLED_ENABLE
  3. #include <stdint.h>
  4. #include "action.h"
  5. void render_logo(void);
  6. void update_key_status(uint16_t keycode, keyrecord_t *record);
  7. void render_key_status(void);
  8. void update_lock_status(void);
  9. void render_lock_status(void);
  10. #define RENDER_LOGO() render_logo()
  11. #define UPDATE_KEY_STATUS(a, b) update_key_status(a, b)
  12. #define RENDER_KEY_STATUS() render_key_status()
  13. #define UPDATE_LOCK_STATUS() update_lock_status()
  14. #define RENDER_LOCK_STATUS() render_lock_status()
  15. #ifdef RGBLIGHT_ENABLE
  16. void update_led_status(void);
  17. void render_led_status(void);
  18. #define UPDATE_LED_STATUS() update_led_status()
  19. #define RENDER_LED_STATUS() render_led_status()
  20. #else
  21. #define UPDATE_LED_STATUS()
  22. #define RENDER_LED_STATUS()
  23. #endif
  24. #else
  25. #define RENDER_LOGO()
  26. #define UPDATE_KEY_STATUS(a, b)
  27. #define RENDER_KEY_STATUS()
  28. #define UPDATE_LOCK_STATUS()
  29. #define RENDER_LOCK_STATUS()
  30. #define UPDATE_LED_STATUS()
  31. #define RENDER_LED_STATUS()
  32. #endif