mirror of
https://github.com/qmk/qmk_firmware.git
synced 2026-10-01 06:19:16 +02:00
Add keyboard Orbiter (#26311)
* Initial commit orbiter Left side support. Need to look into split support next. * Start adding split configurations * Not really working but it compiles * WORKING CONFIG * Add via support remove via json file later * added oled driver and i2c configuration * update to correct driver block macros * fix faulty configuration for i2c * remove via support * enable console by default * rework layout slightly * fix default keymap * cleanup * fix comment * update readme * add copyright headers to pass lint check * apply clang-formatter * refactor folder structure slightly * quickfix name * bump readme * rework for data driven conf * apply formatter json and update naming * forgot one * slight adjustment * use smaller copyright * minor change to name * Apply suggestions from code review Co-authored-by: Joel Challis <git@zvecr.com> * remove .mk file and rename oled.c * apply formatter * git-format text * Use DMA offloading * add dma config * remove lto * Update keyboards/supercrisp/orbiter/readme.md Co-authored-by: Joel Challis <git@zvecr.com> --------- Co-authored-by: rasmus <rasmus_lindy@hotmail.com> Co-authored-by: Joel Challis <git@zvecr.com>
This commit is contained in:
co-authored by
Joel Challis
rasmus
parent
967b5932bf
commit
2a5dd4317a
@@ -0,0 +1,50 @@
|
||||
// Copyright 2026 Karl Stralman (@kjeller)
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
static void render_logo(void) {
|
||||
// clang-format off
|
||||
static const char PROGMEM qmk_logo[] = {
|
||||
0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F, 0x90, 0x91, 0x92, 0x93, 0x94,
|
||||
0xA0, 0xA1, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, 0xA7, 0xA8, 0xA9, 0xAA, 0xAB, 0xAC, 0xAD, 0xAE, 0xAF, 0xB0, 0xB1, 0xB2, 0xB3, 0xB4,
|
||||
0xC0, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, 0xC8, 0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF, 0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0x00
|
||||
};
|
||||
// clang-format on
|
||||
|
||||
oled_write_P(qmk_logo, false);
|
||||
}
|
||||
|
||||
#ifdef OLED_ENABLE
|
||||
bool oled_task_kb(void) {
|
||||
if (!oled_task_user()) {
|
||||
return false;
|
||||
}
|
||||
render_logo();
|
||||
// Host Keyboard Layer Status
|
||||
oled_write_P(PSTR("Layer: "), false);
|
||||
|
||||
switch (get_highest_layer(layer_state)) {
|
||||
case 0:
|
||||
oled_write_P(PSTR("ONE\n"), false);
|
||||
break;
|
||||
case 1:
|
||||
oled_write_P(PSTR("TWO\n"), false);
|
||||
break;
|
||||
case 2:
|
||||
oled_write_P(PSTR("THREE\n"), false);
|
||||
break;
|
||||
default:
|
||||
// Or use the write_ln shortcut over adding '\n' to the end of your string
|
||||
oled_write_ln_P(PSTR("Undefined"), false);
|
||||
}
|
||||
|
||||
// Host Keyboard LED Status
|
||||
led_t led_state = host_keyboard_led_state();
|
||||
oled_write_P(led_state.num_lock ? PSTR("NUM ") : PSTR(" "), false);
|
||||
oled_write_P(led_state.caps_lock ? PSTR("CAP ") : PSTR(" "), false);
|
||||
oled_write_P(led_state.scroll_lock ? PSTR("SCR ") : PSTR(" "), false);
|
||||
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user