Created
August 20, 2022 19:52
-
-
Save Geobert/1f357cb1f34f84c077116894c5d4c469 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void print_base_layer(uint8_t col, uint8_t line) { | |
static const char PROGMEM bepo1[] = { | |
0x01, 0x02, 0x03, 0x04, 0x05, 0 | |
}; | |
static const char PROGMEM bepo2[] = { | |
0x21, 0x22, 0x23, 0x24, 0x25, 0 | |
}; | |
static const char PROGMEM game1[] = { | |
0x06, 0x07, 0x08, 0x09, 0x0A, 0 | |
}; | |
static const char PROGMEM game2[] = { | |
0x26, 0x27, 0x28, 0x29, 0x2A, 0 | |
}; | |
oled_set_cursor(col, line); | |
switch (get_highest_layer(default_layer_state)) { | |
case _BEPO: | |
// oled_write_P(PSTR("Bepo"), false); | |
oled_write_P(bepo1, false); | |
oled_set_cursor(col, line + 1); | |
oled_write_P(bepo2, false); | |
break; | |
case _GAME: | |
oled_write_P(game1, false); | |
oled_set_cursor(col, line + 1); | |
oled_write_P(game2, false); | |
// oled_write_P(PSTR("Game"), false); | |
break; | |
default: | |
oled_write_P(PSTR("Undef"), false); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment