Fix corne oled not working (#111)

Co-authored-by: Dane Lipscombe <dane@lipscombe.com.au>
This commit is contained in:
Dane Lipscombe 2022-02-02 23:21:21 +11:00 committed by GitHub
parent a510e2b6d1
commit 1929773f11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 16 deletions

View File

@ -39,13 +39,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
// #define EE_HANDS // #define EE_HANDS
#define USE_SERIAL_PD2 #define USE_SERIAL_PD2
#ifdef RGBLIGHT_ENABLE
#undef RGBLED_NUM # undef RGBLED_NUM
#define RGBLIGHT_ANIMATIONS # define RGBLIGHT_ANIMATIONS
#define RGBLED_NUM 27 # define RGBLED_NUM 54
#define RGBLIGHT_LIMIT_VAL 120 # undef RGBLED_SPLIT
#define RGBLIGHT_HUE_STEP 10 # define RGBLED_SPLIT \
#define RGBLIGHT_SAT_STEP 17 { 27, 27 }
#define RGBLIGHT_VAL_STEP 17 # define RGBLIGHT_LIMIT_VAL 120
# define RGBLIGHT_HUE_STEP 10
# define RGBLIGHT_SAT_STEP 17
# define RGBLIGHT_VAL_STEP 17
#endif
#define OLED_FONT_H "keyboards/crkbd/lib/glcdfont.c" #define OLED_FONT_H "keyboards/crkbd/lib/glcdfont.c"

View File

@ -69,7 +69,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
) )
}; };
#ifdef OLED_DRIVER_ENABLE #ifdef OLED_ENABLE
#include <stdio.h> #include <stdio.h>
oled_rotation_t oled_init_user(oled_rotation_t rotation) { oled_rotation_t oled_init_user(oled_rotation_t rotation) {
@ -158,13 +158,14 @@ void oled_render_logo(void) {
oled_write_P(crkbd_logo, false); oled_write_P(crkbd_logo, false);
} }
void oled_task_user(void) { bool oled_task_user(void) {
if (is_keyboard_master()) { if (is_keyboard_master()) {
oled_render_layer_state(); oled_render_layer_state();
oled_render_keylog(); oled_render_keylog();
} else { } else {
oled_render_logo(); oled_render_logo();
} }
return false;
} }
bool process_record_user(uint16_t keycode, keyrecord_t *record) { bool process_record_user(uint16_t keycode, keyrecord_t *record) {
@ -173,4 +174,4 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
} }
return true; return true;
} }
#endif // OLED_DRIVER_ENABLE #endif // OLED_ENABLE

View File

@ -1,9 +1,11 @@
MOUSEKEY_ENABLE = no # Mouse keys MOUSEKEY_ENABLE = no # Mouse keys
RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight. RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.
VIA_ENABLE = yes # Enable VIA VIA_ENABLE = yes # Enable VIA
VIAL_ENABLE = yes # Enable VIAL VIAL_ENABLE = yes # Enable VIAL
OLED_DRIVER_ENABLE = no OLED_ENABLE = no
OLED_DRIVER = SSD1306
EXTRAKEY_ENABLE = yes EXTRAKEY_ENABLE = yes
LTO_ENABLE = yes LTO_ENABLE = yes
QMK_SETTINGS = no QMK_SETTINGS = no
COMBO_ENABLE = no COMBO_ENABLE = no