Skip to content

Instantly share code, notes, and snippets.

@drashna
Last active November 5, 2023 03:31
Show Gist options
  • Save drashna/79d14917f98f07e73071cbb391fcb654 to your computer and use it in GitHub Desktop.
Save drashna/79d14917f98f07e73071cbb391fcb654 to your computer and use it in GitHub Desktop.
custom oled sync and timeout for asymmetical oled config
#define SPLIT_POINTING_ENABLE
#define POINTING_DEVICE_RIGHT
#undef SPLIT_OLED_ENABLE
#define OLED_TIMEOUT 0
#define SPLIT_ACTIVITY_ENABLE
bool is_oled_enabled = true;
bool oled_task_user(void) {
if (!is_oled_enabled) {
oled_off();
return false;
} else {
oled_on();
}
// rest of code
return false;
}
void housekeeping_task_user(void) {
is_oled_enabled = (bool)(last_input_activity_elapsed()) < 60000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment