Skip to content

Commit

Permalink
[Cornia] Fix cornia.c/.h includes and scope
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaarai committed Oct 3, 2024
1 parent 71b58e2 commit c70dca5
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 38 deletions.
12 changes: 10 additions & 2 deletions keyboards/cornia/cornia.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

#include QMK_KEYBOARD_H

#include "./cornia.h"

// 'Cornia', 32x32px
#define OLED_LOGO_CORNIA {\
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, \
Expand All @@ -36,3 +34,13 @@ void cornia_render_logo(void) {
oled_write_raw_P(logo, sizeof(logo));
#endif
}

bool oled_task_kb(void) {
#ifdef OLED_ENABLE
if (!oled_task_user()) {
return false;
}
#endif
cornia_render_logo();
return true;
}
2 changes: 1 addition & 1 deletion keyboards/cornia/cornia.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@

#pragma once

#include QMK_KEYBOARD_H
#include "quantum.h"

void cornia_render_logo(void);
1 change: 0 additions & 1 deletion keyboards/cornia/keymaps/fire/callback_oled.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include QMK_KEYBOARD_H

#include "./keymap.h"
#include "./cornia.h"

oled_rotation_t oled_init_user(oled_rotation_t rotation) {
return OLED_ROTATION_270;
Expand Down
17 changes: 0 additions & 17 deletions keyboards/cornia/v0_6/rules.mk

This file was deleted.

17 changes: 0 additions & 17 deletions keyboards/cornia/v1/rules.mk

This file was deleted.

0 comments on commit c70dca5

Please sign in to comment.