1
0
Fork 0

Leeloo revision 2 updates (#21671)

Co-authored-by: Duncan Sutherland <dunk2k_2000@hotmail.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Joel Challis <git@zvecr.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
This commit is contained in:
ClicketySplit 2023-10-04 22:37:02 -06:00 committed by GitHub
parent 61a72b9c20
commit d187a0a3af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 284 additions and 123 deletions

View file

@ -1,5 +1,4 @@
/* Copyright 2022 Clickety Split Ltd.
* https://clicketysplit.ca
/* Copyright 2023 Clickety Split Ltd.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -48,9 +47,20 @@ static void render_mod_status(uint8_t modifiers) {
static void render_secondary_oled(void) {
// Version Information
oled_write_P(PSTR("Leeloo\n\n"), false);
#if defined(KEYBOARD_clickety_split_leeloo_rev1)
oled_write_P(PSTR("Leeloo v1\n\n"), false);
#else
oled_write_P(PSTR("Leeloo v2\n\n"), false);
#endif
oled_write_P(PSTR("Firmware: "), false);
oled_write_P(PSTR("v1.0"), false);
#if defined(KEYBOARD_clickety_split_leeloo_rev1)
oled_write_P(PSTR("v1.13"), false);
#else
oled_write_P(PSTR("v2.13"), false);
#endif
oled_write_P(PSTR("\n"), false);
oled_write_P(PSTR("Clickety Split Ltd."), false);
}
@ -58,7 +68,7 @@ static void render_secondary_oled(void) {
static void render_status(void) {
// Host Keyboard Layer Status
switch (get_highest_layer(default_layer_state)) {
case _BASE:
case 0:
oled_write_P(PSTR("QWERTY | "), false);
break;
}
@ -69,15 +79,15 @@ static void render_status(void) {
oled_write_P(PSTR("Base \n"), false);
break;
case _LOWER:
case 1:
oled_write_P(PSTR("Lower \n"), false);
break;
case _RAISE:
case 2:
oled_write_P(PSTR("Raise \n"), false);
break;
case _ADJUST:
case 3:
oled_write_P(PSTR("Adjust \n"), false);
break;
@ -128,4 +138,4 @@ bool encoder_update_kb(uint8_t index, bool clockwise) {
}
return true;
}
#endif
#endif // ENCODER_ENABLE