Added OLED Display autoscroll during periods of OLED data inactivity (#6546)
* Added OLED Display autoscroll during periods of OLED data inactivity. * Fixing compile errors * Feedback from review
This commit is contained in:
parent
f22c5c17b6
commit
957070a6b5
12 changed files with 72 additions and 46 deletions
|
@ -1,6 +1,5 @@
|
|||
#include "custom_tap_dance.h"
|
||||
#include "custom_keycodes.h"
|
||||
#include "timer_utils.h"
|
||||
|
||||
#ifdef TAP_DANCE_ENABLE
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#define _________________QWERTY_L2_________________ KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T
|
||||
#define _________________QWERTY_L3_________________ RIS_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G
|
||||
#define _________________QWERTY_L4_________________ KC_LSPO, KC_Z, KC_X, KC_C, KC_V, KC_B
|
||||
#define _________________QWERTY_L5_________________ KC_LCPO, KC_LGUI, LOWER, RAISE, KC_LALT, KC_SPC
|
||||
#define _________________QWERTY_L5_________________ KC_LCPO, KC_LGUI, KC_LALT, LOWER, RAISE, KC_SPC
|
||||
|
||||
#define _________________QWERTY_R1_________________ KC_6, KC_7, KC_8, KC_9, KC_0, TD_BSPC
|
||||
#define _________________QWERTY_R2_________________ KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#include "process_records.h"
|
||||
#include "custom_keycodes.h"
|
||||
#include "timer_utils.h"
|
||||
|
||||
#ifdef RGB_ENABLE
|
||||
#include "custom_rgb.h"
|
||||
|
@ -34,7 +33,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record)
|
|||
{
|
||||
if (record->event.pressed)
|
||||
reset_timer = timer_read() + 500;
|
||||
else if (timer_expired(reset_timer))
|
||||
else if (timer_expired(timer_read(), reset_timer))
|
||||
reset_keyboard();
|
||||
}
|
||||
return false;
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
SRC += xulkal.c \
|
||||
process_records.c \
|
||||
custom_tap_dance.c \
|
||||
timer_utils.c
|
||||
custom_tap_dance.c
|
||||
|
||||
# Some usual defaults
|
||||
MOUSEKEY_ENABLE = no # Mouse keys (+4700)
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
#include "timer_utils.h"
|
||||
|
||||
bool timer_expired(uint16_t last)
|
||||
{
|
||||
return timer_read() - last < 0x8000;
|
||||
}
|
||||
|
||||
bool timer_expired32(uint32_t last)
|
||||
{
|
||||
return timer_read32() - last < 0x80000000;
|
||||
}
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
#pragma once
|
||||
#include "timer.h"
|
||||
#include <stdbool.h>
|
||||
|
||||
bool timer_expired(uint16_t last);
|
||||
bool timer_expired32(uint32_t last);
|
|
@ -2,6 +2,5 @@
|
|||
|
||||
#include "process_records.h"
|
||||
#include "layouts.h"
|
||||
#include "timer_utils.h"
|
||||
#include "custom_keycodes.h"
|
||||
#include "custom_tap_dance.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue