@ -0,0 +1,32 @@ | |||
/* Copyright 2019 Thomas Baart | |||
* Copyright 2021 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com> | |||
* | |||
* 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 | |||
* the Free Software Foundation, either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
*/ | |||
#pragma once | |||
#define OLED_FONT_H "users/drashna/drashna_font.h" | |||
#define OLED_UPDATE_INTERVAL 15 | |||
#define OLED_DISABLE_TIMEOUT | |||
#define OLED_FONT_END 255 | |||
// # define OLED_FONT_5X5 | |||
// # define OLED_FONT_AZTECH | |||
// # define OLED_FONT_BMPLAIN | |||
# define OLED_FONT_SUPER_DIGG | |||
// # define OLED_LOGO_GMK_BAD | |||
// # define OLED_LOGO_HUE_MANITEE | |||
// # define OLED_LOGO_CORNE | |||
// # define OLED_LOGO_GOTHAM | |||
#define OLED_LOGO_SCIFI |
@ -0,0 +1,140 @@ | |||
/* Copyright 2019 Thomas Baart | |||
* Copyright 2021 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com> | |||
* | |||
* 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 | |||
* the Free Software Foundation, either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
*/ | |||
#include QMK_KEYBOARD_H | |||
#include <stdio.h> | |||
#ifdef HAPTIC_ENABLE | |||
# include "haptic.h" | |||
extern haptic_config_t haptic_config; | |||
#endif | |||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
[0] = LAYOUT_ortho_4x3( /* Base */ | |||
KC_MUTE, TG(1), TG(2), | |||
KC_P7, KC_P8, KC_P9, | |||
KC_P4, KC_P5, KC_P6, | |||
KC_P1, KC_P2, KC_P3 | |||
), | |||
[1] = LAYOUT_ortho_4x3( /* Layer 1 */ | |||
RESET, _______, XXXXXXX, | |||
AU_ON, AU_OFF, XXXXXXX, | |||
CK_TOGG, XXXXXXX, CK_UP, | |||
CK_RST, XXXXXXX, CK_DOWN | |||
), | |||
[2] = LAYOUT_ortho_4x3( /* Layer 2*/ | |||
RGB_TOG, RGB_MOD, _______, | |||
RGB_HUI, RGB_SAI, RGB_VAI, | |||
RGB_HUD, RGB_SAD, RGB_VAD, | |||
HPT_TOG, HPT_FBK, HPT_CONT | |||
) | |||
}; | |||
static bool is_asleep = false; | |||
static uint32_t oled_timer; | |||
void render_oled_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,0}; | |||
// clang-format on | |||
oled_write_ln_P(qmk_logo, false); | |||
} | |||
void render_user_status(void) { | |||
static const char PROGMEM audio_status[2][3] = {{0xE0, 0xE1, 0}, {0xE2, 0xE3, 0}}; | |||
oled_write_P(audio_status[is_audio_on()], false); | |||
static const char PROGMEM audio_clicky_status[2][3] = {{0xF4, 0xF5, 0}, {0xF6, 0xF7, 0}}; | |||
oled_write_P(audio_clicky_status[is_clicky_on() && is_audio_on()], false); | |||
static const char PROGMEM rgb_layer_status[2][3] = {{0xEE, 0xEF, 0}, {0xF0, 0xF1, 0}}; | |||
oled_write_P(rgb_layer_status[rgblight_is_enabled()], false); | |||
static const char PROGMEM nukem_good[2][3] = {{0xF8, 0xF9, 0}, {0xF6, 0xF7, 0}}; | |||
oled_write_P(nukem_good[0], haptic_config.enable); | |||
} | |||
void keyboard_post_init_user(void) { | |||
oled_scroll_set_speed(0); | |||
} | |||
void oled_task_user(void) { | |||
if (is_asleep) { | |||
oled_off(); | |||
return; | |||
} | |||
if (timer_elapsed32(oled_timer) < 30000) { | |||
oled_on(); | |||
oled_scroll_off(); | |||
oled_write_P(PSTR("SplitKB's Zima"), false); | |||
char layer[2] = {0}; | |||
snprintf(layer, sizeof(layer), "%d", get_highest_layer(layer_state)); | |||
oled_write_P(PSTR(" L:"), false); | |||
oled_write_ln(layer, false); | |||
oled_write_ln_P(PSTR("--------------"), false); | |||
if (rgblight_is_enabled()) { | |||
oled_write_P(PSTR("HSV: "), false); | |||
char rgbs[14]; | |||
snprintf(rgbs, sizeof(rgbs), "%3d, %3d, %3d", rgblight_get_hue(), rgblight_get_sat(), rgblight_get_val()); | |||
oled_write_ln(rgbs, false); | |||
} else { | |||
oled_write_ln_P(PSTR("RGB LIGHT DISABLED"), false); | |||
} | |||
render_user_status(); | |||
} else { | |||
if (timer_elapsed32(oled_timer) < 120000) { | |||
oled_on(); | |||
render_oled_logo(); | |||
oled_scroll_right(); | |||
} else { | |||
oled_off(); | |||
} | |||
} | |||
} | |||
void suspend_power_down_user(void) { | |||
is_asleep = true; | |||
} | |||
void suspend_wakeup_init_user(void) { | |||
is_asleep = false; | |||
} | |||
bool process_record_user(uint16_t keycode, keyrecord_t* record) { | |||
oled_timer = timer_read32(); | |||
return true; | |||
} | |||
void encoder_update_user(uint8_t index, bool clockwise) { | |||
if (clockwise) { | |||
tap_code16(KC_VOLU); | |||
} else { | |||
tap_code16(KC_VOLD); | |||
} | |||
# ifdef OLED_DRIVER_ENABLE | |||
oled_timer = timer_read32(); | |||
# endif | |||
# if defined(AUDIO_ENABLE) && defined(AUDIO_CLICKY) | |||
if (is_audio_on() && is_clicky_on()) clicky_play(); | |||
# endif | |||
# ifdef HAPTIC_ENABLE | |||
if (haptic_config.enable) haptic_play(); | |||
# endif | |||
} |
@ -0,0 +1,7 @@ | |||
# The default keymap for zima | |||
This includes support for the OLED and Encoder. However, the actual code is found in the `zima.c` file. This can be replaced by adding your own `oled_task_user(void)` and `encoder_update_user` functinons. These will replace what is in the keyboard, and allow you to customize these features. | |||
The reason that this is done this way, is so that this functionality will work on the [QMK Configurator](https://config.qmk.fm/#/splitkb/zima/LAYOUT_ortho_4x3) | |||
For reference, the code used for the oled and encoder defaults is in [zima.c](https://github.com/qmk/qmk_firmware/tree/master/keyboards/splitkb/zima/zima.c). |
@ -0,0 +1,2 @@ | |||
# is intentional. won't compile under size, otherwise. | |||
USER_NAME := not_drashna |
@ -0,0 +1,9 @@ | |||
#define CH_CFG_ST_RESOLUTION 16 | |||
#define CH_CFG_ST_FREQUENCY 10000 | |||
#if __has_include("platforms/chibios/common/configs/chconf.h") | |||
# include_next "platforms/chibios/common/configs/chconf.h" | |||
#else | |||
# include_next "chconf.h" | |||
#endif |
@ -0,0 +1,508 @@ | |||
/* Copyright 2020 Christopher Courtney, aka Drashna Jael're (@drashna) <drashna@live.com> | |||
* | |||
* 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 | |||
* the Free Software Foundation, either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* This program is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
*/ | |||
#include <string.h> | |||
#include <stddef.h> | |||
#include "matrix.h" | |||
#include QMK_KEYBOARD_H | |||
#define ROWS_PER_HAND (MATRIX_ROWS / 2) | |||
#ifdef RGBLIGHT_ENABLE | |||
# include "rgblight.h" | |||
#endif | |||
#ifdef BACKLIGHT_ENABLE | |||
# include "backlight.h" | |||
#endif | |||
#ifdef ENCODER_ENABLE | |||
# include "encoder.h" | |||
static pin_t encoders_pad[] = ENCODERS_PAD_A; | |||
# define NUMBER_OF_ENCODERS (sizeof(encoders_pad) / sizeof(pin_t)) | |||
#endif | |||
#ifdef POINTING_DEVICE_ENABLE | |||
static int8_t split_mouse_x = 0, split_mouse_y = 0; | |||
#endif | |||
#ifdef OLED_DRIVER_ENABLE | |||
# include "oled_driver.h" | |||
#endif | |||
#if defined(USE_I2C) | |||
# include "i2c_master.h" | |||
# include "i2c_slave.h" | |||
typedef struct _I2C_slave_buffer_t { | |||
matrix_row_t smatrix[ROWS_PER_HAND]; | |||
# ifdef SPLIT_MODS_ENABLE | |||
uint8_t real_mods; | |||
uint8_t weak_mods; | |||
# ifndef NO_ACTION_ONESHOT | |||
uint8_t oneshot_mods; | |||
# endif | |||
# endif | |||
# ifdef BACKLIGHT_ENABLE | |||
uint8_t backlight_level; | |||
# endif | |||
# if defined(RGBLIGHT_ENABLE) && defined(RGBLIGHT_SPLIT) | |||
rgblight_syncinfo_t rgblight_sync; | |||
# endif | |||
# ifdef ENCODER_ENABLE | |||
uint8_t encoder_state[NUMBER_OF_ENCODERS]; | |||
# endif | |||
# ifdef WPM_ENABLE | |||
uint8_t current_wpm; | |||
# endif | |||
int8_t mouse_x; | |||
int8_t mouse_y; | |||
bool oled_on; | |||
layer_state_t t_layer_state; | |||
layer_state_t t_default_layer_state; | |||
bool is_rgb_matrix_suspended; | |||
} __attribute__((packed)) I2C_slave_buffer_t; | |||
static I2C_slave_buffer_t *const i2c_buffer = (I2C_slave_buffer_t *)i2c_slave_reg; | |||
# define I2C_BACKLIGHT_START offsetof(I2C_slave_buffer_t, backlight_level) | |||
# define I2C_RGB_START offsetof(I2C_slave_buffer_t, rgblight_sync) | |||
# define I2C_KEYMAP_START offsetof(I2C_slave_buffer_t, smatrix) | |||
# define I2C_REAL_MODS_START offsetof(I2C_slave_buffer_t, real_mods) | |||
# define I2C_WEAK_MODS_START offsetof(I2C_slave_buffer_t, weak_mods) | |||
# define I2C_ONESHOT_MODS_START offsetof(I2C_slave_buffer_t, oneshot_mods) | |||
# define I2C_ENCODER_START offsetof(I2C_slave_buffer_t, encoder_state) | |||
# define I2C_WPM_START offsetof(I2C_slave_buffer_t, current_wpm) | |||
# define I2C_MOUSE_X_START offsetof(I2C_slave_buffer_t, mouse_x) | |||
# define I2C_MOUSE_Y_START offsetof(I2C_slave_buffer_t, mouse_y) | |||
# define I2C_OLED_ON_START offsetof(I2C_slave_buffer_t, oled_on) | |||
# define I2C_LAYER_STATE_START offsetof(I2C_slave_buffer_t, t_layer_state) | |||
# define I2C_DEFAULT_LAYER_STATE_START offsetof(I2C_slave_buffer_t, t_default_layer_state) | |||
# define I2C_RGB_MATRIX_SUSPEND_START offsetof(I2C_slave_buffer_t, is_rgb_matrix_suspended) | |||
# define TIMEOUT 100 | |||
# ifndef SLAVE_I2C_ADDRESS | |||
# define SLAVE_I2C_ADDRESS 0x32 | |||
# endif | |||
// Get rows from other half over i2c | |||
bool transport_master(matrix_row_t matrix[]) { | |||
i2c_readReg(SLAVE_I2C_ADDRESS, I2C_KEYMAP_START, (void *)matrix, sizeof(i2c_buffer->smatrix), TIMEOUT); | |||
// write backlight info | |||
# ifdef BACKLIGHT_ENABLE | |||
uint8_t level = is_backlight_enabled() ? get_backlight_level() : 0; | |||
if (level != i2c_buffer->backlight_level) { | |||
if (i2c_writeReg(SLAVE_I2C_ADDRESS, I2C_BACKLIGHT_START, (void *)&level, sizeof(level), TIMEOUT) >= 0) { | |||
i2c_buffer->backlight_level = level; | |||
} | |||
} | |||
# endif | |||
# if defined(RGBLIGHT_ENABLE) && defined(RGBLIGHT_SPLIT) | |||
if (rgblight_get_change_flags()) { | |||
rgblight_syncinfo_t rgblight_sync; | |||
rgblight_get_syncinfo(&rgblight_sync); | |||
if (i2c_writeReg(SLAVE_I2C_ADDRESS, I2C_RGB_START, (void *)&rgblight_sync, sizeof(rgblight_sync), TIMEOUT) >= 0) { | |||
rgblight_clear_change_flags(); | |||
} | |||
} | |||
# endif | |||
# ifdef ENCODER_ENABLE | |||
i2c_readReg(SLAVE_I2C_ADDRESS, I2C_ENCODER_START, (void *)i2c_buffer->encoder_state, sizeof(i2c_buffer->encoder_state), TIMEOUT); | |||
encoder_update_raw(i2c_buffer->encoder_state); | |||
# endif | |||
# ifdef WPM_ENABLE | |||
uint8_t current_wpm = get_current_wpm(); | |||
if (current_wpm != i2c_buffer->current_wpm) { | |||
if (i2c_writeReg(SLAVE_I2C_ADDRESS, I2C_WPM_START, (void *)¤t_wpm, sizeof(current_wpm), TIMEOUT) >= 0) { | |||
i2c_buffer->current_wpm = current_wpm; | |||
} | |||
} | |||
# endif | |||
# ifdef POINTING_DEVICE_ENABLE | |||
if (is_keyboard_left()) { | |||
report_mouse_t temp_report = pointing_device_get_report(); | |||
i2c_readReg(SLAVE_I2C_ADDRESS, I2C_MOUSE_X_START, (void *)&i2c_buffer->mouse_x, sizeof(i2c_buffer->mouse_x), TIMEOUT); | |||
temp_report.x = i2c_buffer->mouse_x; | |||
i2c_readReg(SLAVE_I2C_ADDRESS, I2C_MOUSE_Y_START, (void *)&i2c_buffer->mouse_y, sizeof(i2c_buffer->mouse_y), TIMEOUT); | |||
temp_report.y = i2c_buffer->mouse_y; | |||
pointing_device_set_report(temp_report); | |||
} | |||
# endif | |||
# ifdef SPLIT_MODS_ENABLE | |||
uint8_t real_mods = get_mods(); | |||
if (real_mods != i2c_buffer->real_mods) { | |||
if (i2c_writeReg(SLAVE_I2C_ADDRESS, I2C_REAL_MODS_START, (void *)&real_mods, sizeof(real_mods), TIMEOUT) >= 0) { | |||
i2c_buffer->real_mods = real_mods; | |||
} | |||
} | |||
uint8_t weak_mods = get_weak_mods(); | |||
if (weak_mods != i2c_buffer->weak_mods) { | |||
if (i2c_writeReg(SLAVE_I2C_ADDRESS, I2C_WEAK_MODS_START, (void *)&weak_mods, sizeof(weak_mods), TIMEOUT) >= 0) { | |||
i2c_buffer->weak_mods = weak_mods; | |||
} | |||
} | |||
# ifndef NO_ACTION_ONESHOT | |||
uint8_t oneshot_mods = get_oneshot_mods(); | |||
if (oneshot_mods != i2c_buffer->oneshot_mods) { | |||
if (i2c_writeReg(SLAVE_I2C_ADDRESS, I2C_ONESHOT_MODS_START, (void *)&oneshot_mods, sizeof(oneshot_mods), TIMEOUT) >= 0) { | |||
i2c_buffer->oneshot_mods = oneshot_mods; | |||
} | |||
} | |||
# endif | |||
# endif | |||
if (layer_state != i2c_buffer->t_layer_state) { | |||
if (i2c_writeReg(SLAVE_I2C_ADDRESS, I2C_LAYER_STATE_START, (void *)&layer_state, sizeof(layer_state), TIMEOUT) >= 0) { | |||
i2c_buffer->t_layer_state = layer_state; | |||
} | |||
} | |||
if (default_layer_state != i2c_buffer->t_default_layer_state) { | |||
if (i2c_writeReg(SLAVE_I2C_ADDRESS, I2C_DEFAULT_LAYER_STATE_START, (void *)&default_layer_state, sizeof(default_layer_state), TIMEOUT) >= 0) { | |||
i2c_buffer->t_default_layer_state = default_layer_state; | |||
} | |||
} | |||
# ifdef OLED_DRIVER_ENABLE | |||
bool is_oled = is_oled_on(); | |||
if (is_oled != i2c_buffer->oled_on) { | |||
if (i2c_writeReg(SLAVE_I2C_ADDRESS, I2C_LAYER_STATE_START, (void *)&is_oled, sizeof(is_oled), TIMEOUT) >= 0) { | |||
i2c_buffer->oled_on = is_oled; | |||
} | |||
} | |||
# endif | |||
# ifdef RGB_MATRIX_ENABLE | |||
bool sus_state = rgb_matrix_get_suspend_state(); | |||
if (sus_state != i2c_buffer->is_rgb_matrix_suspended) { | |||
if (i2c_writeReg(SLAVE_I2C_ADDRESS, I2C_RGB_MATRIX_SUSPEND_START, (void *)&sus_state, sizeof(sus_state), TIMEOUT) >= 0) { | |||
i2c_buffer->is_rgb_matrix_suspended = sus_state; | |||
} | |||
} | |||
# endif | |||
return true; | |||
} | |||
void transport_slave(matrix_row_t matrix[]) { | |||
// Copy matrix to I2C buffer | |||
memcpy((void *)i2c_buffer->smatrix, (void *)matrix, sizeof(i2c_buffer->smatrix)); | |||
// Read Backlight Info | |||
# ifdef BACKLIGHT_ENABLE | |||
backlight_set(i2c_buffer->backlight_level); | |||
# endif | |||
# if defined(RGBLIGHT_ENABLE) && defined(RGBLIGHT_SPLIT) | |||
// Update the RGB with the new data | |||
if (i2c_buffer->rgblight_sync.status.change_flags != 0) { | |||
rgblight_update_sync(&i2c_buffer->rgblight_sync, false); | |||
i2c_buffer->rgblight_sync.status.change_flags = 0; | |||
} | |||
# endif | |||
# ifdef ENCODER_ENABLE | |||
encoder_state_raw(i2c_buffer->encoder_state); | |||
# endif | |||
# ifdef WPM_ENABLE | |||
set_current_wpm(i2c_buffer->current_wpm); | |||
# endif | |||
# ifdef POINTING_DEVICE_ENABLE | |||
if (!is_keyboard_left()) { | |||
i2c_buffer->mouse_x = split_mouse_x; | |||
i2c_writeReg(SLAVE_I2C_ADDRESS, I2C_MOUSE_X_START, (void *)&i2c_buffer->mouse_x, sizeof(i2c_buffer->mouse_x), TIMEOUT); | |||
i2c_buffer->mouse_y = split_mouse_y; | |||
i2c_writeReg(SLAVE_I2C_ADDRESS, I2C_MOUSE_Y_START, (void *)&i2c_buffer->mouse_y, sizeof(i2c_buffer->mouse_y), TIMEOUT); | |||
} | |||
# endif | |||
# ifdef SPLIT_MODS_ENABLE | |||
set_mods(i2c_buffer->real_mods); | |||
set_weak_mods(i2c_buffer->weak_mods); | |||
# ifndef NO_ACTION_ONESHOT | |||
set_oneshot_mods(i2c_buffer->oneshot_mods); | |||
# endif | |||
# endif | |||
if (layer_state != i2c_buffer->t_layer_state) { | |||
layer_state = i2c_buffer->t_layer_state; | |||
} | |||
if (default_layer_state != i2c_buffer->t_default_layer_state) { | |||
default_layer_state = i2c_buffer->t_default_layer_state; | |||
} | |||
# ifdef OLED_DRIVER_ENABLE | |||
if (i2c_buffer->oled_on) { | |||
oled_on(); | |||
} else { | |||
oled_off(); | |||
} | |||
# endif | |||
# ifdef RGB_MATRIX_ENABLE | |||
rgb_matrix_set_suspend_state(i2c_buffer->is_rgb_matrix_suspended); | |||
# endif | |||
} | |||
void transport_master_init(void) { i2c_init(); } | |||
void transport_slave_init(void) { i2c_slave_init(SLAVE_I2C_ADDRESS); } | |||
#else // USE_SERIAL | |||
# include "serial.h" | |||
typedef struct _Serial_s2m_buffer_t { | |||
// TODO: if MATRIX_COLS > 8 change to uint8_t packed_matrix[] for pack/unpack | |||
matrix_row_t smatrix[ROWS_PER_HAND]; | |||
# ifdef ENCODER_ENABLE | |||
uint8_t encoder_state[NUMBER_OF_ENCODERS]; | |||
# endif | |||
int8_t mouse_x; | |||
int8_t mouse_y; | |||
} __attribute__((packed)) Serial_s2m_buffer_t; | |||
typedef struct _Serial_m2s_buffer_t { | |||
# ifdef SPLIT_MODS_ENABLE | |||
uint8_t real_mods; | |||
uint8_t weak_mods; | |||
# ifndef NO_ACTION_ONESHOT | |||
uint8_t oneshot_mods; | |||
# endif | |||
# endif | |||
# ifdef BACKLIGHT_ENABLE | |||
uint8_t backlight_level; | |||
# endif | |||
# ifdef WPM_ENABLE | |||
uint8_t current_wpm; | |||
# endif | |||
bool oled_on; | |||
layer_state_t t_layer_state; | |||
layer_state_t t_default_layer_state; | |||
bool is_rgb_matrix_suspended; | |||
} __attribute__((packed)) Serial_m2s_buffer_t; | |||
# if defined(RGBLIGHT_ENABLE) && defined(RGBLIGHT_SPLIT) | |||
// When MCUs on both sides drive their respective RGB LED chains, | |||
// it is necessary to synchronize, so it is necessary to communicate RGB | |||
// information. In that case, define RGBLIGHT_SPLIT with info on the number | |||
// of LEDs on each half. | |||
// | |||
// Otherwise, if the master side MCU drives both sides RGB LED chains, | |||
// there is no need to communicate. | |||
typedef struct _Serial_rgblight_t { | |||
rgblight_syncinfo_t rgblight_sync; | |||
} Serial_rgblight_t; | |||
volatile Serial_rgblight_t serial_rgblight = {}; | |||
uint8_t volatile status_rgblight = 0; | |||
# endif | |||
volatile Serial_s2m_buffer_t serial_s2m_buffer = {}; | |||
volatile Serial_m2s_buffer_t serial_m2s_buffer = {}; | |||
uint8_t volatile status0 = 0; | |||
enum serial_transaction_id { | |||
GET_SLAVE_MATRIX = 0, | |||
# if defined(RGBLIGHT_ENABLE) && defined(RGBLIGHT_SPLIT) | |||
PUT_RGBLIGHT, | |||
# endif | |||
}; | |||
SSTD_t transactions[] = { | |||
[GET_SLAVE_MATRIX] = | |||
{ | |||
(uint8_t *)&status0, | |||
sizeof(serial_m2s_buffer), | |||
(uint8_t *)&serial_m2s_buffer, | |||
sizeof(serial_s2m_buffer), | |||
(uint8_t *)&serial_s2m_buffer, | |||
}, | |||
# if defined(RGBLIGHT_ENABLE) && defined(RGBLIGHT_SPLIT) | |||
[PUT_RGBLIGHT] = | |||
{ | |||
(uint8_t *)&status_rgblight, sizeof(serial_rgblight), (uint8_t *)&serial_rgblight, 0, NULL // no slave to master transfer | |||
}, | |||
# endif | |||
}; | |||
void transport_master_init(void) { soft_serial_initiator_init(transactions, TID_LIMIT(transactions)); } | |||
void transport_slave_init(void) { soft_serial_target_init(transactions, TID_LIMIT(transactions)); } | |||
# if defined(RGBLIGHT_ENABLE) && defined(RGBLIGHT_SPLIT) | |||
// rgblight synchronization information communication. | |||
void transport_rgblight_master(void) { | |||
if (rgblight_get_change_flags()) { | |||
rgblight_get_syncinfo((rgblight_syncinfo_t *)&serial_rgblight.rgblight_sync); | |||
if (soft_serial_transaction(PUT_RGBLIGHT) == TRANSACTION_END) { | |||
rgblight_clear_change_flags(); | |||
} | |||
} | |||
} | |||
void transport_rgblight_slave(void) { | |||
if (status_rgblight == TRANSACTION_ACCEPTED) { | |||
rgblight_update_sync((rgblight_syncinfo_t *)&serial_rgblight.rgblight_sync, false); | |||
status_rgblight = TRANSACTION_END; | |||
} | |||
} | |||
# else | |||
# define transport_rgblight_master() | |||
# define transport_rgblight_slave() | |||
# endif | |||
bool transport_master(matrix_row_t matrix[]) { | |||
# ifndef SERIAL_USE_MULTI_TRANSACTION | |||
if (soft_serial_transaction() != TRANSACTION_END) { | |||
return false; | |||
} | |||
# else | |||
transport_rgblight_master(); | |||
if (soft_serial_transaction(GET_SLAVE_MATRIX) != TRANSACTION_END) { | |||
return false; | |||
} | |||
# endif | |||
// TODO: if MATRIX_COLS > 8 change to unpack() | |||
for (int i = 0; i < ROWS_PER_HAND; ++i) { | |||
matrix[i] = serial_s2m_buffer.smatrix[i]; | |||
} | |||
# ifdef BACKLIGHT_ENABLE | |||
// Write backlight level for slave to read | |||
serial_m2s_buffer.backlight_level = is_backlight_enabled() ? get_backlight_level() : 0; | |||
# endif | |||
# ifdef ENCODER_ENABLE | |||
encoder_update_raw((uint8_t *)serial_s2m_buffer.encoder_state); | |||
# endif | |||
# ifdef WPM_ENABLE | |||
// Write wpm to slave | |||
serial_m2s_buffer.current_wpm = get_current_wpm(); | |||
# endif | |||
# ifdef SPLIT_MODS_ENABLE | |||
serial_m2s_buffer.real_mods = get_mods(); | |||
serial_m2s_buffer.weak_mods = get_weak_mods(); | |||
# ifndef NO_ACTION_ONESHOT | |||
serial_m2s_buffer.oneshot_mods = get_oneshot_mods(); | |||
# endif | |||
# endif | |||
# ifdef POINTING_DEVICE_ENABLE | |||
if (is_keyboard_left()) { | |||
report_mouse_t temp_report = pointing_device_get_report(); | |||
temp_report.x = serial_s2m_buffer.mouse_x; | |||
temp_report.y = serial_s2m_buffer.mouse_y; | |||
pointing_device_set_report(temp_report); | |||
} | |||
# endif | |||
serial_m2s_buffer.t_layer_state = layer_state; | |||
serial_m2s_buffer.t_default_layer_state = default_layer_state; | |||
# ifdef OLED_DRIVER_ENABLE | |||
serial_m2s_buffer.oled_on = is_oled_on(); | |||
# endif | |||
# ifdef RGB_MATRIX_ENABLE | |||
serial_m2s_buffer.is_rgb_matrix_suspended = rgb_matrix_get_suspend_state(); | |||
# endif | |||
return true; | |||
} | |||
void transport_slave(matrix_row_t matrix[]) { | |||
transport_rgblight_slave(); | |||
// TODO: if MATRIX_COLS > 8 change to pack() | |||
for (int i = 0; i < ROWS_PER_HAND; ++i) { | |||
serial_s2m_buffer.smatrix[i] = matrix[i]; | |||
} | |||
# ifdef BACKLIGHT_ENABLE | |||
backlight_set(serial_m2s_buffer.backlight_level); | |||
# endif | |||
# ifdef ENCODER_ENABLE | |||
encoder_state_raw((uint8_t *)serial_s2m_buffer.encoder_state); | |||
# endif | |||
# ifdef WPM_ENABLE | |||
set_current_wpm(serial_m2s_buffer.current_wpm); | |||
# endif | |||
# ifdef SPLIT_MODS_ENABLE | |||
set_mods(serial_m2s_buffer.real_mods); | |||
set_weak_mods(serial_m2s_buffer.weak_mods); | |||
# ifndef NO_ACTION_ONESHOT | |||
set_oneshot_mods(serial_m2s_buffer.oneshot_mods); | |||
# endif | |||
# endif | |||
# ifdef POINTING_DEVICE_ENABLE | |||
if (!is_keyboard_left()) { | |||
serial_s2m_buffer.mouse_x = split_mouse_x; | |||
serial_s2m_buffer.mouse_y = split_mouse_y; | |||
} | |||
# endif | |||
if (layer_state != serial_m2s_buffer.t_layer_state) { | |||
layer_state = serial_m2s_buffer.t_layer_state; | |||
} | |||
if (default_layer_state != serial_m2s_buffer.t_default_layer_state) { | |||
default_layer_state = serial_m2s_buffer.t_default_layer_state; | |||
} | |||
# ifdef OLED_DRIVER_ENABLE | |||
if (serial_m2s_buffer.oled_on) { | |||
oled_on(); | |||
} else { | |||
oled_off(); | |||
} | |||
# endif | |||
# ifdef RGB_MATRIX_ENABLE | |||
rgb_matrix_set_suspend_state(serial_m2s_buffer.is_rgb_matrix_suspended); | |||
# endif | |||
} | |||
#endif | |||
#ifdef POINTING_DEVICE_ENABLE | |||
void master_mouse_send(int8_t x, int8_t y) { | |||
split_mouse_x = x; | |||
split_mouse_y = y; | |||
} | |||
#endif |
@ -1,234 +0,0 @@ | |||
#pragma once | |||
#include "progmem.h" | |||
// Corne 8x6 font with QMK Firmware Logo | |||
// Online editor: https://helixfonteditor.netlify.com/ | |||
// clang-format off | |||
const unsigned char font[] PROGMEM = { | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x3E, 0x5B, 0x4F, 0x5B, 0x3E, 0x00, | |||
0x3E, 0x6B, 0x4F, 0x6B, 0x3E, 0x00, | |||
0x1C, 0x3E, 0x7C, 0x3E, 0x1C, 0x00, | |||
0x18, 0x3C, 0x7E, 0x3C, 0x18, 0x00, | |||
0x1C, 0x57, 0x7D, 0x57, 0x1C, 0x00, | |||
0x1C, 0x5E, 0x7F, 0x5E, 0x1C, 0x00, | |||
0x00, 0x18, 0x3C, 0x18, 0x00, 0x00, | |||
0xFF, 0xE7, 0xC3, 0xE7, 0xFF, 0x00, | |||
0x00, 0x18, 0x24, 0x18, 0x00, 0x00, | |||
0xFF, 0xE7, 0xDB, 0xE7, 0xFF, 0x00, | |||
0x30, 0x48, 0x3A, 0x06, 0x0E, 0x00, | |||
0x26, 0x29, 0x79, 0x29, 0x26, 0x00, | |||
0x40, 0x7F, 0x05, 0x05, 0x07, 0x00, | |||
0x40, 0x7F, 0x05, 0x25, 0x3F, 0x00, | |||
0x5A, 0x3C, 0xE7, 0x3C, 0x5A, 0x00, | |||
0x7F, 0x3E, 0x1C, 0x1C, 0x08, 0x00, | |||
0x08, 0x1C, 0x1C, 0x3E, 0x7F, 0x00, | |||
0x14, 0x22, 0x7F, 0x22, 0x14, 0x00, | |||
0x5F, 0x5F, 0x00, 0x5F, 0x5F, 0x00, | |||
0x06, 0x09, 0x7F, 0x01, 0x7F, 0x00, | |||
0x00, 0x66, 0x89, 0x95, 0x6A, 0x00, | |||
0x60, 0x60, 0x60, 0x60, 0x60, 0x00, | |||
0x94, 0xA2, 0xFF, 0xA2, 0x94, 0x00, | |||
0x08, 0x04, 0x7E, 0x04, 0x08, 0x00, | |||
0x10, 0x20, 0x7E, 0x20, 0x10, 0x00, | |||
0x08, 0x08, 0x2A, 0x1C, 0x08, 0x00, | |||
0x08, 0x1C, 0x2A, 0x08, 0x08, 0x00, | |||
0x1E, 0x10, 0x10, 0x10, 0x10, 0x00, | |||
0x0C, 0x1E, 0x0C, 0x1E, 0x0C, 0x00, | |||
0x30, 0x38, 0x3E, 0x38, 0x30, 0x00, | |||
0x06, 0x0E, 0x3E, 0x0E, 0x06, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x5F, 0x00, 0x00, 0x00, | |||
0x00, 0x07, 0x00, 0x07, 0x00, 0x00, | |||
0x14, 0x7F, 0x14, 0x7F, 0x14, 0x00, | |||
0x24, 0x2A, 0x7F, 0x2A, 0x12, 0x00, | |||
0x23, 0x13, 0x08, 0x64, 0x62, 0x00, | |||
0x36, 0x49, 0x56, 0x20, 0x50, 0x00, | |||
0x00, 0x08, 0x07, 0x03, 0x00, 0x00, | |||
0x00, 0x1C, 0x22, 0x41, 0x00, 0x00, | |||
0x00, 0x41, 0x22, 0x1C, 0x00, 0x00, | |||
0x2A, 0x1C, 0x7F, 0x1C, 0x2A, 0x00, | |||
0x08, 0x08, 0x3E, 0x08, 0x08, 0x00, | |||
0x00, 0x80, 0x70, 0x30, 0x00, 0x00, | |||
0x08, 0x08, 0x08, 0x08, 0x08, 0x00, | |||
0x00, 0x00, 0x60, 0x60, 0x00, 0x00, | |||
0x20, 0x10, 0x08, 0x04, 0x02, 0x00, | |||
0x3E, 0x51, 0x49, 0x45, 0x3E, 0x00, | |||
0x00, 0x42, 0x7F, 0x40, 0x00, 0x00, | |||
0x72, 0x49, 0x49, 0x49, 0x46, 0x00, | |||
0x21, 0x41, 0x49, 0x4D, 0x33, 0x00, | |||
0x18, 0x14, 0x12, 0x7F, 0x10, 0x00, | |||
0x27, 0x45, 0x45, 0x45, 0x39, 0x00, | |||
0x3C, 0x4A, 0x49, 0x49, 0x31, 0x00, | |||
0x41, 0x21, 0x11, 0x09, 0x07, 0x00, | |||
0x36, 0x49, 0x49, 0x49, 0x36, 0x00, | |||
0x46, 0x49, 0x49, 0x29, 0x1E, 0x00, | |||
0x00, 0x00, 0x14, 0x00, 0x00, 0x00, | |||
0x00, 0x40, 0x34, 0x00, 0x00, 0x00, | |||
0x00, 0x08, 0x14, 0x22, 0x41, 0x00, | |||
0x14, 0x14, 0x14, 0x14, 0x14, 0x00, | |||
0x00, 0x41, 0x22, 0x14, 0x08, 0x00, | |||
0x02, 0x01, 0x59, 0x09, 0x06, 0x00, | |||
0x3E, 0x41, 0x5D, 0x59, 0x4E, 0x00, | |||
0x7C, 0x12, 0x11, 0x12, 0x7C, 0x00, | |||
0x7F, 0x49, 0x49, 0x49, 0x36, 0x00, | |||
0x3E, 0x41, 0x41, 0x41, 0x22, 0x00, | |||
0x7F, 0x41, 0x41, 0x41, 0x3E, 0x00, | |||
0x7F, 0x49, 0x49, 0x49, 0x41, 0x00, | |||
0x7F, 0x09, 0x09, 0x09, 0x01, 0x00, | |||
0x3E, 0x41, 0x41, 0x51, 0x73, 0x00, | |||
0x7F, 0x08, 0x08, 0x08, 0x7F, 0x00, | |||
0x00, 0x41, 0x7F, 0x41, 0x00, 0x00, | |||
0x20, 0x40, 0x41, 0x3F, 0x01, 0x00, | |||
0x7F, 0x08, 0x14, 0x22, 0x41, 0x00, | |||
0x7F, 0x40, 0x40, 0x40, 0x40, 0x00, | |||
0x7F, 0x02, 0x1C, 0x02, 0x7F, 0x00, | |||
0x7F, 0x04, 0x08, 0x10, 0x7F, 0x00, | |||
0x3E, 0x41, 0x41, 0x41, 0x3E, 0x00, | |||
0x7F, 0x09, 0x09, 0x09, 0x06, 0x00, | |||
0x3E, 0x41, 0x51, 0x21, 0x5E, 0x00, | |||
0x7F, 0x09, 0x19, 0x29, 0x46, 0x00, | |||
0x26, 0x49, 0x49, 0x49, 0x32, 0x00, | |||
0x03, 0x01, 0x7F, 0x01, 0x03, 0x00, | |||
0x3F, 0x40, 0x40, 0x40, 0x3F, 0x00, | |||
0x1F, 0x20, 0x40, 0x20, 0x1F, 0x00, | |||
0x3F, 0x40, 0x38, 0x40, 0x3F, 0x00, | |||
0x63, 0x14, 0x08, 0x14, 0x63, 0x00, | |||
0x03, 0x04, 0x78, 0x04, 0x03, 0x00, | |||
0x61, 0x59, 0x49, 0x4D, 0x43, 0x00, | |||
0x00, 0x7F, 0x41, 0x41, 0x41, 0x00, | |||
0x02, 0x04, 0x08, 0x10, 0x20, 0x00, | |||
0x00, 0x41, 0x41, 0x41, 0x7F, 0x00, | |||
0x04, 0x02, 0x01, 0x02, 0x04, 0x00, | |||
0x40, 0x40, 0x40, 0x40, 0x40, 0x00, | |||
0x00, 0x03, 0x07, 0x08, 0x00, 0x00, | |||
0x20, 0x54, 0x54, 0x78, 0x40, 0x00, | |||
0x7F, 0x28, 0x44, 0x44, 0x38, 0x00, | |||
0x38, 0x44, 0x44, 0x44, 0x28, 0x00, | |||
0x38, 0x44, 0x44, 0x28, 0x7F, 0x00, | |||
0x38, 0x54, 0x54, 0x54, 0x18, 0x00, | |||
0x00, 0x08, 0x7E, 0x09, 0x02, 0x00, | |||
0x18, 0x24, 0x24, 0x1C, 0x78, 0x00, | |||
0x7F, 0x08, 0x04, 0x04, 0x78, 0x00, | |||
0x00, 0x44, 0x7D, 0x40, 0x00, 0x00, | |||
0x20, 0x40, 0x40, 0x3D, 0x00, 0x00, | |||
0x7F, 0x10, 0x28, 0x44, 0x00, 0x00, | |||
0x00, 0x41, 0x7F, 0x40, 0x00, 0x00, | |||
0x7C, 0x04, 0x78, 0x04, 0x78, 0x00, | |||
0x7C, 0x08, 0x04, 0x04, 0x78, 0x00, | |||
0x38, 0x44, 0x44, 0x44, 0x38, 0x00, | |||
0x7C, 0x18, 0x24, 0x24, 0x18, 0x00, | |||
0x18, 0x24, 0x24, 0x18, 0x7C, 0x00, | |||
0x7C, 0x08, 0x04, 0x04, 0x08, 0x00, | |||
0x48, 0x54, 0x54, 0x54, 0x24, 0x00, | |||
0x04, 0x04, 0x3F, 0x44, 0x24, 0x00, | |||
0x3C, 0x40, 0x40, 0x20, 0x7C, 0x00, | |||
0x1C, 0x20, 0x40, 0x20, 0x1C, 0x00, | |||
0x3C, 0x40, 0x30, 0x40, 0x3C, 0x00, | |||
0x44, 0x28, 0x10, 0x28, 0x44, 0x00, | |||
0x4C, 0x90, 0x10, 0x90, 0x7C, 0x00, | |||
0x44, 0x64, 0x54, 0x4C, 0x44, 0x00, | |||
0x00, 0x08, 0x36, 0x41, 0x00, 0x00, | |||
0x00, 0x00, 0x77, 0x00, 0x00, 0x00, | |||
0x00, 0x41, 0x36, 0x08, 0x00, 0x00, | |||
0x02, 0x01, 0x02, 0x04, 0x02, 0x00, | |||
0x3C, 0x26, 0x23, 0x26, 0x3C, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x80, 0xC0, 0xE0, 0xF0, 0xF0, 0x70, | |||
0x38, 0x38, 0x38, 0x78, 0x70, 0xF0, | |||
0xE0, 0xE0, 0x80, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x80, 0xF0, 0xF8, | |||
0xF8, 0xF8, 0xF8, 0x00, 0x00, 0x00, | |||
0x80, 0xE0, 0xF8, 0xF8, 0xF8, 0xF8, | |||
0xF0, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x80, 0xF8, 0xF8, 0xF8, 0x38, 0x00, | |||
0x80, 0xE0, 0xF0, 0xF8, 0x78, 0x38, | |||
0x08, 0x08, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x80, 0xF8, 0xF8, 0xF8, 0x38, 0x38, | |||
0x38, 0xF8, 0xF0, 0xF0, 0xE0, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x80, 0xFC, 0xFC, | |||
0xFC, 0x1C, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0xE0, 0xF0, 0xF0, 0xF0, 0xE0, 0xEC, | |||
0xEE, 0xF7, 0xF3, 0x70, 0x20, 0x00, | |||
0x7C, 0x7C, 0x7C, 0x7E, 0x00, 0x7E, | |||
0x7E, 0x7E, 0x7F, 0x7F, 0x7F, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x3C, | |||
0xFF, 0xFF, 0xFF, 0xC1, 0x80, 0x00, | |||
0x00, 0x38, 0x38, 0xB8, 0xB8, 0xF9, | |||
0xF9, 0xF8, 0x38, 0x00, 0x00, 0x00, | |||
0x00, 0xC0, 0xF8, 0xFF, 0xFF, 0x1F, | |||
0x01, 0x3F, 0xFF, 0xFF, 0xF0, 0xFE, | |||
0x7F, 0x0F, 0x03, 0xFF, 0xFF, 0xFF, | |||
0xFF, 0x00, 0x00, 0x00, 0x00, 0x80, | |||
0xFF, 0xFF, 0xFF, 0x3F, 0x1E, 0x7F, | |||
0xFF, 0xFF, 0xF3, 0xC1, 0x80, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x80, | |||
0xFF, 0xFF, 0xFF, 0x3F, 0x1C, 0x1C, | |||
0x9C, 0xFF, 0xFF, 0xF3, 0xE1, 0x00, | |||
0x00, 0x00, 0x00, 0xF0, 0xFC, 0xFE, | |||
0xFF, 0x0F, 0x07, 0x07, 0x8E, 0xFF, | |||
0xFF, 0xFF, 0x3F, 0x00, 0x00, 0x00, | |||
0x00, 0xF0, 0xFC, 0xFE, 0xFF, 0x8F, | |||
0x07, 0x07, 0x8E, 0xFF, 0xFF, 0xFF, | |||
0x3F, 0x00, 0x00, 0x00, 0x00, 0x80, | |||
0xC0, 0x80, 0x00, 0x00, 0x00, 0x00, | |||
0x0F, 0x1F, 0x3F, 0x7F, 0x7F, 0x7F, | |||
0x7F, 0x7F, 0x3F, 0x1E, 0x0C, 0x00, | |||
0x1F, 0x1F, 0x1F, 0x3F, 0x00, 0x3F, | |||
0x3F, 0x3F, 0x7F, 0x7F, 0x7F, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x01, 0x03, 0x03, 0x03, 0x07, | |||
0x07, 0x07, 0x07, 0x03, 0x03, 0x03, | |||
0x01, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x06, 0x07, 0x07, 0x07, 0x01, 0x00, | |||
0x00, 0x00, 0x07, 0x07, 0x07, 0x01, | |||
0x00, 0x00, 0x00, 0x07, 0x07, 0x07, | |||
0x07, 0x00, 0x00, 0x00, 0x00, 0x07, | |||
0x07, 0x07, 0x07, 0x00, 0x00, 0x00, | |||
0x00, 0x03, 0x07, 0x07, 0x07, 0x06, | |||
0x04, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x07, | |||
0x07, 0x07, 0x07, 0x07, 0x07, 0x07, | |||
0x07, 0x07, 0x03, 0x01, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x03, 0x07, | |||
0x07, 0x07, 0x07, 0x03, 0x07, 0x07, | |||
0x07, 0x07, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x03, 0x07, 0x07, 0x07, | |||
0x07, 0x03, 0x07, 0x07, 0x07, 0x07, | |||
0x00, 0x00, 0x00, 0x00, 0x01, 0x07, | |||
0x07, 0x07, 0x01, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
}; |
@ -1,234 +0,0 @@ | |||
#pragma once | |||
#include "progmem.h" | |||
// Corne 8x6 font with QMK Firmware Logo | |||
// Online editor: https://helixfonteditor.netlify.com/ | |||
// clang-format off | |||
const unsigned char font[] PROGMEM = { | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x3E, 0x5B, 0x4F, 0x5B, 0x3E, 0x00, | |||
0x3E, 0x6B, 0x4F, 0x6B, 0x3E, 0x00, | |||
0x1C, 0x3E, 0x7C, 0x3E, 0x1C, 0x00, | |||
0x18, 0x3C, 0x7E, 0x3C, 0x18, 0x00, | |||
0x1C, 0x57, 0x7D, 0x57, 0x1C, 0x00, | |||
0x1C, 0x5E, 0x7F, 0x5E, 0x1C, 0x00, | |||
0x00, 0x18, 0x3C, 0x18, 0x00, 0x00, | |||
0xFF, 0xE7, 0xC3, 0xE7, 0xFF, 0x00, | |||
0x00, 0x18, 0x24, 0x18, 0x00, 0x00, | |||
0xFF, 0xE7, 0xDB, 0xE7, 0xFF, 0x00, | |||
0x30, 0x48, 0x3A, 0x06, 0x0E, 0x00, | |||
0x26, 0x29, 0x79, 0x29, 0x26, 0x00, | |||
0x40, 0x7F, 0x05, 0x05, 0x07, 0x00, | |||
0x40, 0x7F, 0x05, 0x25, 0x3F, 0x00, | |||
0x5A, 0x3C, 0xE7, 0x3C, 0x5A, 0x00, | |||
0x7F, 0x3E, 0x1C, 0x1C, 0x08, 0x00, | |||
0x08, 0x1C, 0x1C, 0x3E, 0x7F, 0x00, | |||
0x14, 0x22, 0x7F, 0x22, 0x14, 0x00, | |||
0x5F, 0x5F, 0x00, 0x5F, 0x5F, 0x00, | |||
0x06, 0x09, 0x7F, 0x01, 0x7F, 0x00, | |||
0x00, 0x66, 0x89, 0x95, 0x6A, 0x00, | |||
0x60, 0x60, 0x60, 0x60, 0x60, 0x00, | |||
0x94, 0xA2, 0xFF, 0xA2, 0x94, 0x00, | |||
0x08, 0x04, 0x7E, 0x04, 0x08, 0x00, | |||
0x10, 0x20, 0x7E, 0x20, 0x10, 0x00, | |||
0x08, 0x08, 0x2A, 0x1C, 0x08, 0x00, | |||
0x08, 0x1C, 0x2A, 0x08, 0x08, 0x00, | |||
0x1E, 0x10, 0x10, 0x10, 0x10, 0x00, | |||
0x0C, 0x1E, 0x0C, 0x1E, 0x0C, 0x00, | |||
0x30, 0x38, 0x3E, 0x38, 0x30, 0x00, | |||
0x06, 0x0E, 0x3E, 0x0E, 0x06, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x5F, 0x00, 0x00, 0x00, | |||
0x00, 0x07, 0x00, 0x07, 0x00, 0x00, | |||
0x14, 0x7F, 0x14, 0x7F, 0x14, 0x00, | |||
0x24, 0x2A, 0x7F, 0x2A, 0x12, 0x00, | |||
0x23, 0x13, 0x08, 0x64, 0x62, 0x00, | |||
0x36, 0x49, 0x56, 0x20, 0x50, 0x00, | |||
0x00, 0x08, 0x07, 0x03, 0x00, 0x00, | |||
0x00, 0x1C, 0x22, 0x41, 0x00, 0x00, | |||
0x00, 0x41, 0x22, 0x1C, 0x00, 0x00, | |||
0x2A, 0x1C, 0x7F, 0x1C, 0x2A, 0x00, | |||
0x08, 0x08, 0x3E, 0x08, 0x08, 0x00, | |||
0x00, 0x80, 0x70, 0x30, 0x00, 0x00, | |||
0x08, 0x08, 0x08, 0x08, 0x08, 0x00, | |||
0x00, 0x00, 0x60, 0x60, 0x00, 0x00, | |||
0x20, 0x10, 0x08, 0x04, 0x02, 0x00, | |||
0x3E, 0x51, 0x49, 0x45, 0x3E, 0x00, | |||
0x00, 0x42, 0x7F, 0x40, 0x00, 0x00, | |||
0x72, 0x49, 0x49, 0x49, 0x46, 0x00, | |||
0x21, 0x41, 0x49, 0x4D, 0x33, 0x00, | |||
0x18, 0x14, 0x12, 0x7F, 0x10, 0x00, | |||
0x27, 0x45, 0x45, 0x45, 0x39, 0x00, | |||
0x3C, 0x4A, 0x49, 0x49, 0x31, 0x00, | |||
0x41, 0x21, 0x11, 0x09, 0x07, 0x00, | |||
0x36, 0x49, 0x49, 0x49, 0x36, 0x00, | |||
0x46, 0x49, 0x49, 0x29, 0x1E, 0x00, | |||
0x00, 0x00, 0x14, 0x00, 0x00, 0x00, | |||
0x00, 0x40, 0x34, 0x00, 0x00, 0x00, | |||
0x00, 0x08, 0x14, 0x22, 0x41, 0x00, | |||
0x14, 0x14, 0x14, 0x14, 0x14, 0x00, | |||
0x00, 0x41, 0x22, 0x14, 0x08, 0x00, | |||
0x02, 0x01, 0x59, 0x09, 0x06, 0x00, | |||
0x3E, 0x41, 0x5D, 0x59, 0x4E, 0x00, | |||
0x7C, 0x12, 0x11, 0x12, 0x7C, 0x00, | |||
0x7F, 0x49, 0x49, 0x49, 0x36, 0x00, | |||
0x3E, 0x41, 0x41, 0x41, 0x22, 0x00, | |||
0x7F, 0x41, 0x41, 0x41, 0x3E, 0x00, | |||
0x7F, 0x49, 0x49, 0x49, 0x41, 0x00, | |||
0x7F, 0x09, 0x09, 0x09, 0x01, 0x00, | |||
0x3E, 0x41, 0x41, 0x51, 0x73, 0x00, | |||
0x7F, 0x08, 0x08, 0x08, 0x7F, 0x00, | |||
0x00, 0x41, 0x7F, 0x41, 0x00, 0x00, | |||
0x20, 0x40, 0x41, 0x3F, 0x01, 0x00, | |||
0x7F, 0x08, 0x14, 0x22, 0x41, 0x00, | |||
0x7F, 0x40, 0x40, 0x40, 0x40, 0x00, | |||
0x7F, 0x02, 0x1C, 0x02, 0x7F, 0x00, | |||
0x7F, 0x04, 0x08, 0x10, 0x7F, 0x00, | |||
0x3E, 0x41, 0x41, 0x41, 0x3E, 0x00, | |||
0x7F, 0x09, 0x09, 0x09, 0x06, 0x00, | |||
0x3E, 0x41, 0x51, 0x21, 0x5E, 0x00, | |||
0x7F, 0x09, 0x19, 0x29, 0x46, 0x00, | |||
0x26, 0x49, 0x49, 0x49, 0x32, 0x00, | |||
0x03, 0x01, 0x7F, 0x01, 0x03, 0x00, | |||
0x3F, 0x40, 0x40, 0x40, 0x3F, 0x00, | |||
0x1F, 0x20, 0x40, 0x20, 0x1F, 0x00, | |||
0x3F, 0x40, 0x38, 0x40, 0x3F, 0x00, | |||
0x63, 0x14, 0x08, 0x14, 0x63, 0x00, | |||
0x03, 0x04, 0x78, 0x04, 0x03, 0x00, | |||
0x61, 0x59, 0x49, 0x4D, 0x43, 0x00, | |||
0x00, 0x7F, 0x41, 0x41, 0x41, 0x00, | |||
0x02, 0x04, 0x08, 0x10, 0x20, 0x00, | |||
0x00, 0x41, 0x41, 0x41, 0x7F, 0x00, | |||
0x04, 0x02, 0x01, 0x02, 0x04, 0x00, | |||
0x40, 0x40, 0x40, 0x40, 0x40, 0x00, | |||
0x00, 0x03, 0x07, 0x08, 0x00, 0x00, | |||
0x20, 0x54, 0x54, 0x78, 0x40, 0x00, | |||
0x7F, 0x28, 0x44, 0x44, 0x38, 0x00, | |||
0x38, 0x44, 0x44, 0x44, 0x28, 0x00, | |||
0x38, 0x44, 0x44, 0x28, 0x7F, 0x00, | |||
0x38, 0x54, 0x54, 0x54, 0x18, 0x00, | |||
0x00, 0x08, 0x7E, 0x09, 0x02, 0x00, | |||
0x18, 0x24, 0x24, 0x1C, 0x78, 0x00, | |||
0x7F, 0x08, 0x04, 0x04, 0x78, 0x00, | |||
0x00, 0x44, 0x7D, 0x40, 0x00, 0x00, | |||
0x20, 0x40, 0x40, 0x3D, 0x00, 0x00, | |||
0x7F, 0x10, 0x28, 0x44, 0x00, 0x00, | |||
0x00, 0x41, 0x7F, 0x40, 0x00, 0x00, | |||
0x7C, 0x04, 0x78, 0x04, 0x78, 0x00, | |||
0x7C, 0x08, 0x04, 0x04, 0x78, 0x00, | |||
0x38, 0x44, 0x44, 0x44, 0x38, 0x00, | |||
0x7C, 0x18, 0x24, 0x24, 0x18, 0x00, | |||
0x18, 0x24, 0x24, 0x18, 0x7C, 0x00, | |||
0x7C, 0x08, 0x04, 0x04, 0x08, 0x00, | |||
0x48, 0x54, 0x54, 0x54, 0x24, 0x00, | |||
0x04, 0x04, 0x3F, 0x44, 0x24, 0x00, | |||
0x3C, 0x40, 0x40, 0x20, 0x7C, 0x00, | |||
0x1C, 0x20, 0x40, 0x20, 0x1C, 0x00, | |||
0x3C, 0x40, 0x30, 0x40, 0x3C, 0x00, | |||
0x44, 0x28, 0x10, 0x28, 0x44, 0x00, | |||
0x4C, 0x90, 0x10, 0x90, 0x7C, 0x00, | |||
0x44, 0x64, 0x54, 0x4C, 0x44, 0x00, | |||
0x00, 0x08, 0x36, 0x41, 0x00, 0x00, | |||
0x00, 0x00, 0x77, 0x00, 0x00, 0x00, | |||
0x00, 0x41, 0x36, 0x08, 0x00, 0x00, | |||
0x02, 0x01, 0x02, 0x04, 0x02, 0x00, | |||
0x3C, 0x26, 0x23, 0x26, 0x3C, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x80, 0xC0, 0xC0, | |||
0x90, 0x70, 0xE8, 0xA8, 0xE4, 0xC4, | |||
0xC4, 0xA0, 0xE4, 0xB0, 0xDC, 0xE4, | |||
0xFC, 0xFC, 0xFC, 0xFC, 0x3C, 0x3C, | |||
0xFC, 0xF8, 0xF0, 0xF0, 0xE0, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0xF8, 0xF8, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0xF8, 0xF8, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0xE0, 0xF0, 0xF0, 0xF0, 0xE0, 0xEC, | |||
0xEE, 0xF7, 0xF3, 0x70, 0x20, 0x00, | |||
0x7C, 0x7C, 0x7C, 0x7E, 0x00, 0x7E, | |||
0x7E, 0x7E, 0x7F, 0x7F, 0x7F, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0xF0, | |||
0xFC, 0xF6, 0xF7, 0xEF, 0xFF, 0x87, | |||
0x1F, 0x1F, 0x1F, 0x1F, 0x1F, 0x1F, | |||
0x1F, 0x1F, 0x1F, 0xFF, 0xFF, 0xFF, | |||
0xFF, 0x07, 0x1F, 0x1F, 0x19, 0x15, | |||
0xF7, 0x16, 0x1A, 0x1B, 0x16, 0x07, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x0C, 0x0C, 0x33, 0x33, | |||
0x33, 0x33, 0x33, 0x33, 0xC0, 0xC0, | |||
0x00, 0x00, 0x03, 0x03, 0xFF, 0xFF, | |||
0x03, 0x03, 0x00, 0x00, 0xC0, 0xC0, | |||
0x00, 0x00, 0x00, 0xFC, 0xFC, 0x03, | |||
0x03, 0x03, 0x03, 0x03, 0x03, 0xFC, | |||
0xFC, 0x00, 0x00, 0x00, 0xFC, 0xFC, | |||
0x03, 0x03, 0x03, 0x03, 0x03, 0x03, | |||
0xC0, 0xC0, 0x00, 0x00, 0x00, 0x00, | |||
0xFF, 0xFF, 0x30, 0x30, 0xCC, 0xCC, | |||
0x03, 0x03, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x0F, 0x1F, 0x3F, 0x7F, 0x7F, 0x7F, | |||
0x7F, 0x7F, 0x3F, 0x1E, 0x0C, 0x00, | |||
0x1F, 0x1F, 0x1F, 0x3F, 0x00, 0x3F, | |||
0x3F, 0x3F, 0x7F, 0x7F, 0x7F, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, | |||
0x03, 0x07, 0x07, 0x07, 0x07, 0x01, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x03, 0x07, 0x07, | |||
0x03, 0x00, 0x00, 0x02, 0x04, 0x00, | |||
0x07, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x03, 0x03, 0x03, 0x03, | |||
0x03, 0x03, 0x03, 0x03, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x03, 0x03, 0x03, 0x03, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x03, | |||
0x03, 0x03, 0x03, 0x03, 0x03, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x03, 0x03, 0x03, 0x03, 0x03, 0x03, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x03, 0x03, 0x00, 0x00, 0x00, 0x00, | |||
0x03, 0x03, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | |||
}; |