Browse Source

Add fixes

pull/22557/head
harvey-splitkb 1 month ago
parent
commit
664de9110f
4 changed files with 32 additions and 0 deletions
  1. +17
    -0
      keyboards/splitkb/elora/config.h
  2. +8
    -0
      keyboards/splitkb/elora/rev1/config.h
  3. +1
    -0
      keyboards/splitkb/elora/rev1/myriad.c
  4. +6
    -0
      keyboards/splitkb/elora/rev1/rev1.c

+ 17
- 0
keyboards/splitkb/elora/config.h View File

@ -0,0 +1,17 @@
/* Copyright 2023 splitkb.com <support@splitkb.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once

+ 8
- 0
keyboards/splitkb/elora/rev1/config.h View File

@ -48,6 +48,13 @@
#define SPLIT_POINTING_ENABLE
#define POINTING_DEVICE_COMBINED
// Watchdog
#define SPLIT_WATCHDOG_ENABLE
#define SPLIT_WATCHDOG_TIMEOUT 3000
// VBUS detection
#define USB_VBUS_PIN GP25
// Handedness
#define SPLIT_HAND_PIN GP14
@ -62,6 +69,7 @@
// 3 onboard, 1 for Myriad
#define NUM_ENCODERS_LEFT 4
#define NUM_ENCODERS_RIGHT 4
#define ENCODER_RESOLUTION 2
// OLED display
#ifdef OLED_ENABLE


+ 1
- 0
keyboards/splitkb/elora/rev1/myriad.c View File

@ -155,6 +155,7 @@ static bool read_card_identity(uint8_t *data, uint16_t length, identity_record_t
static myriad_card_t _detect_myriad(void) {
setPinInput(MYRIAD_PRESENT);
wait_ms(100);
// The pin has an external pull-up, and a Myriad card shorts it to ground.
#ifndef MYRIAD_OVERRIDE_PRESENCE
if (readPin(MYRIAD_PRESENT)) {


+ 6
- 0
keyboards/splitkb/elora/rev1/rev1.c View File

@ -80,6 +80,12 @@ void keyboard_pre_init_kb(void) {
setPinOutput(GP9);
writePinHigh(GP9);
setPinOutput(ELORA_CC1_PIN);
writePinLow(ELORA_CC1_PIN);
setPinOutput(ELORA_CC2_PIN);
writePinLow(ELORA_CC2_PIN);
// We have to get the SPI interface working quite early,
// So make sure it is available well before we need it
spi_init();


Loading…
Cancel
Save