Browse Source

Update splittest/teensy_2 to use SPLIT_USB_DETECT (#7028)

pull/7037/head
Joel Challis 4 years ago
committed by GitHub
parent
commit
e796d7b49e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 14 deletions
  1. +2
    -0
      keyboards/handwired/splittest/teensy_2/config.h
  2. +0
    -14
      keyboards/handwired/splittest/teensy_2/teensy_2.c

+ 2
- 0
keyboards/handwired/splittest/teensy_2/config.h View File

@ -27,5 +27,7 @@
/* ws2812 RGB LED */
#define RGB_DI_PIN D3
// teensy has vbus detection issues - use usb detection instead
#define SPLIT_USB_DETECT
// required for teensy slave otherwise it "locks up" during startup
#define NO_USB_STARTUP_CHECK

+ 0
- 14
keyboards/handwired/splittest/teensy_2/teensy_2.c View File

@ -1,14 +0,0 @@
#include QMK_KEYBOARD_H
bool is_keyboard_master(void) {
// TODO: replace this override once USB host detection is implemented
// SPLIT_HAND_PIN Combined with MASTER_LEFT or MASTER_RIGHT, gives a crude
// way to force teensy to run as slave/master
setPinInput(SPLIT_HAND_PIN);
#if defined(MASTER_RIGHT)
return !readPin(SPLIT_HAND_PIN);
#else
return readPin(SPLIT_HAND_PIN);
#endif
}

Loading…
Cancel
Save