diff options
author | XScorpion2 <rcalt2vt@gmail.com> | 2019-05-06 17:06:43 -0500 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-05-06 15:06:43 -0700 |
commit | e01b2d518a1a08ce07278ef9a38c7a793c843749 (patch) | |
tree | bb63e0653e09308286d86df303c8d17a447df46c /keyboards/sol/common/knob_v2.h | |
parent | 99500243e10c12c0a5005da49aa1986947b27153 (diff) |
[Keyboard] Sol keyboard conversion to split common (#5773)
* Split common conversion
* Updated serial and encoder pins
* Fixing default folder until r2
* Fixing oled driver on slave split common
* Fixing keymap compile errors
* Fixing oled inactivity timer on slave split common
* Hoisted oled driver task, init, & activity to keyboard.c
* Update keyboards/sol/config.h
Co-Authored-By: XScorpion2 <rcalt2vt@gmail.com>
* Remove TAPPING_FORCE_HOLD
Diffstat (limited to 'keyboards/sol/common/knob_v2.h')
-rw-r--r-- | keyboards/sol/common/knob_v2.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/keyboards/sol/common/knob_v2.h b/keyboards/sol/common/knob_v2.h deleted file mode 100644 index 45196eb1a6..0000000000 --- a/keyboards/sol/common/knob_v2.h +++ /dev/null @@ -1,28 +0,0 @@ -// Rotary knob implementation - Version 2. -// Uses 2 digital pins - D2 (via interrupt) & D6. -// #include "rev1.h" -#include <avr/io.h> -#include <avr/interrupt.h> -#include <stdbool.h> - -#ifndef ENCODER_PIN_1 - #define ENCODER_PIN_1 PD2 -#endif -#ifndef ENCODER_PIN_2 - #define ENCODER_PIN_2 PD6 -#endif -#ifndef ENCODER_INT - #define ENCODER_INT INT2_vect -#endif - -typedef struct knob_report_t { - int8_t dir; // Contains number of rotations that happened - int8_t phase; // Contains 0 if last rotation happened on 90 degrees, 1 if on 270 -} knob_report_t; - -void knob_init(void); -knob_report_t knob_report_read(void); -void knob_report_reset(void); - -bool knob_prev_a; -int8_t knob_dir; |