qmk

QMK Firmware
git clone git://git.z3bra.org/qmk.git
Log | Files | Refs | Submodules | LICENSE

mode_icon_reader.c (421B)


      1 #include <stdio.h>
      2 #include "lily58.h"
      3 
      4 char mode_icon[24];
      5 
      6 const char *read_mode_icon(bool swap) {
      7   static char logo[][2][3] = {{{0x95, 0x96, 0}, {0xb5, 0xb6, 0}}, {{0x97, 0x98, 0}, {0xb7, 0xb8, 0}}};
      8   if (swap == false) {
      9     snprintf(mode_icon, sizeof(mode_icon), "%s\n%s", logo[0][0], logo[0][1]);
     10   } else {
     11     snprintf(mode_icon, sizeof(mode_icon), "%s\n%s", logo[1][0], logo[1][1]);
     12   }
     13 
     14   return mode_icon;
     15 }