You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
556 B

  1. #include "cjuniet.h"
  2. void render_status_bar(void) {
  3. uint8_t modifiers = get_mods();
  4. led_t led_state = host_keyboard_led_state();
  5. oled_write_P(PSTR("\325\326"), (modifiers & MOD_MASK_SHIFT));
  6. oled_write_P(PSTR("\327\330"), (modifiers & MOD_MASK_CTRL));
  7. oled_write_P(PSTR("\331\332"), (modifiers & MOD_MASK_ALT));
  8. oled_write_P(PSTR("\333\334"), (modifiers & MOD_MASK_GUI));
  9. oled_write_P(PSTR(" "), false);
  10. oled_write_P(PSTR("\235\236"), led_state.caps_lock);
  11. oled_write_P(PSTR("\275\276"), led_state.num_lock);
  12. }