[Keymap] Add oled improvements and cnano keymap for drashna (#16133)

This commit is contained in:
Drashna Jaelre 2022-01-30 13:20:33 -08:00 committed by GitHub
parent 3555ee0555
commit 941b1d35b8
Failed to generate hash of commit
22 changed files with 797 additions and 189 deletions

View file

@ -8,7 +8,7 @@
# include <avr/wdt.h>
#endif
#ifdef CUSTOM_UNICODE_ENABLE
#ifdef UNICODE_COMMON_ENABLE
# include "process_unicode_common.h"
extern unicode_config_t unicode_config;
#endif
@ -58,7 +58,7 @@ void watchdog_handler(uint8_t in_buflen, const void* in_data, uint8_t out_buflen
#endif
#ifdef OLED_ENABLE
#include "oled/oled_stuff.h"
# include "oled/oled_stuff.h"
void keylogger_string_sync(uint8_t initiator2target_buffer_size, const void* initiator2target_buffer, uint8_t target2initiator_buffer_size, void* target2initiator_buffer) {
if (initiator2target_buffer_size == OLED_KEYLOGGER_LENGTH) {
memcpy(&keylog_str, initiator2target_buffer, initiator2target_buffer_size);
@ -95,7 +95,7 @@ void user_transport_update(void) {
#if defined(POINTING_DEVICE_ENABLE) && defined(KEYBOARD_handwired_tractyl_manuform)
user_state.tap_toggling = tap_toggling;
#endif
#ifdef UNICODE_ENABLE
#ifdef UNICODE_COMMON_ENABLE
user_state.unicode_mode = unicode_config.input_mode;
#endif
#ifdef SWAP_HANDS_ENABLE
@ -108,7 +108,7 @@ void user_transport_update(void) {
keymap_config.raw = transport_keymap_config;
userspace_config.raw = transport_userspace_config;
user_state.raw = transport_user_state;
#ifdef UNICODE_ENABLE
#ifdef UNICODE_COMMON_ENABLE
unicode_config.input_mode = user_state.unicode_mode;
#endif
#if defined(POINTING_DEVICE_ENABLE) && defined(KEYBOARD_handwired_tractyl_manuform)
@ -128,7 +128,7 @@ void user_transport_sync(void) {
static uint32_t last_config = 0, last_sync[4], last_user_state = 0;
bool needs_sync = false;
#ifdef OLED_ENABLE
static char keylog_temp[OLED_KEYLOGGER_LENGTH] = { 0 };
static char keylog_temp[OLED_KEYLOGGER_LENGTH] = {0};
#endif
// Check if the state values are different
@ -228,7 +228,6 @@ void user_transport_sync(void) {
}
}
#endif
}
void housekeeping_task_user(void) {

View file

@ -15,7 +15,7 @@ typedef union {
bool audio_enable :1;
bool audio_clicky_enable :1;
bool tap_toggling :1;
bool unicode_mode :1;
uint8_t unicode_mode :3;
bool swap_hands :1;
bool host_driver_disabled :1;
};