Cleanup qvex lynepad sources in qmk

This commit is contained in:
kemonine 2020-10-30 23:03:36 -04:00
parent 3aa34e251b
commit 7ffe823263
3 changed files with 8 additions and 54 deletions

View File

@ -10,24 +10,8 @@ void keyboard_pre_init_kb(void) {
setPinInput(PIN_RJ_DIR_C);
setPinInput(PIN_RJ_DIR_B);
setPinInput(PIN_RJ_DIR_D);
// Matrix pins
setPinInput(C7);
setPinInput(F7);
setPinInput(F6);
setPinInput(F0);
setPinInput(F1);
setPinInput(F4);
setPinInput(F5);
}
// void keyboard_post_init_user(void) {
// debug_enable=true;
// debug_matrix=true;
// debug_keyboard=true;
// debug_mouse=true;
// }
int16_t enc1Center = 1;
int16_t enc1CenterPrev = 1;
int16_t enc2Center = 1;
@ -56,30 +40,6 @@ void matrix_scan_kb(void) {
enc2RightPrev = enc2Right;
enc2Right = readPin(PIN_RJ_DIR_D);
// printf("==================\n");
// print("Encoders\n");
// uprintf(" E1CP: %d\n", enc1CenterPrev);
// uprintf(" E1C: %d\n", enc1Center);
// uprintf(" E2CP: %d\n", enc2CenterPrev);
// uprintf(" E2C: %d\n", enc2Center);
// uprintf(" E2UP: %d\n", enc2UpPrev);
// uprintf(" E2U: %d\n", enc2Up);
// uprintf(" E2DP: %d\n", enc2DownPrev);
// uprintf(" E2D: %d\n", enc2Down);
// uprintf(" E2LP: %d\n", enc2LeftPrev);
// uprintf(" E2L: %d\n", enc2Left);
// uprintf(" E2RP: %d\n", enc2RightPrev);
// uprintf(" E2R: %d\n", enc2Right);
// print("Rows\n");
// uprintf(" C7: %d\n", readPin(C7));
// uprintf(" F7: %d\n", readPin(F7));
// uprintf(" F6: %d\n", readPin(F6));
// print("Cols\n");
// uprintf(" F0: %d\n", readPin(F0));
// uprintf(" F1: %d\n", readPin(F1));
// uprintf(" F4: %d\n", readPin(F4));
// uprintf(" F5: %d\n", readPin(F5));
// Ensure any user customizations are called (for some reason this wasn't happening by default)
matrix_scan_user();
}

View File

@ -26,12 +26,12 @@
* represents the switch matrix.
*/
#define LAYOUT_Lynepad( \
k00, k01, k02, k03, \
k10, k11, k12, k13, \
k20, k21, k22 \
K00, K01, K02, K03, \
K10, K11, K12, K13, \
K20, K21, K22 \
) \
{ \
{ k00, k01, k02, k03 }, \
{ k10, k11, k12, k13 }, \
{ k20, k21, k22, KC_NO } \
{ K00, K01, K02, K03 }, \
{ K10, K11, K12, K13 }, \
{ K20, K21, K22, KC_NO } \
}

View File

@ -17,18 +17,12 @@ BOOTLOADER = caterina
BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
MOUSEKEY_ENABLE = yes # Mouse keys
EXTRAKEY_ENABLE = yes # Audio control and System control
CONSOLE_ENABLE = yes # Console for debug
CONSOLE_ENABLE = no # Console for debug
COMMAND_ENABLE = no # Commands for debug and configuration
# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
NKRO_ENABLE = no # USB Nkey Rollover
NKRO_ENABLE = yes # USB Nkey Rollover
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
MIDI_ENABLE = no # MIDI support
UNICODE_ENABLE = no # Unicode
BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
AUDIO_ENABLE = no # Audio output on port C6
FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
HD44780_ENABLE = no # Enable support for HD44780 based LCDs
ENCODER_ENABLE = yes # Enable the encoders