From eb7d4325a6e3376d0234e66f1906723efbe01a18 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Tue, 14 Dec 2021 11:08:39 -0800 Subject: [PATCH] Standardize how we turn on the keyscanner power net --- .../src/kaleidoscope/device/keyboardio/Model100.cpp | 5 +---- .../src/kaleidoscope/device/keyboardio/Model100.h | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/plugins/Kaleidoscope-Hardware-Keyboardio-Model100/src/kaleidoscope/device/keyboardio/Model100.cpp b/plugins/Kaleidoscope-Hardware-Keyboardio-Model100/src/kaleidoscope/device/keyboardio/Model100.cpp index e4c5db78..8baa6d64 100644 --- a/plugins/Kaleidoscope-Hardware-Keyboardio-Model100/src/kaleidoscope/device/keyboardio/Model100.cpp +++ b/plugins/Kaleidoscope-Hardware-Keyboardio-Model100/src/kaleidoscope/device/keyboardio/Model100.cpp @@ -48,10 +48,7 @@ driver::keyboardio::Model100Side Model100Hands::leftHand(0); driver::keyboardio::Model100Side Model100Hands::rightHand(3); void Model100Hands::setup(void) { - delay(100); - pinMode(PB9, OUTPUT_OPEN_DRAIN); - digitalWrite(PB9, LOW); - delay(105); // TODO remove this when we remove it from the attiny code +Model100KeyScanner::enableScannerPower(); Wire.begin(); Wire.setClock(400000); diff --git a/plugins/Kaleidoscope-Hardware-Keyboardio-Model100/src/kaleidoscope/device/keyboardio/Model100.h b/plugins/Kaleidoscope-Hardware-Keyboardio-Model100/src/kaleidoscope/device/keyboardio/Model100.h index 817f53cd..7046e30e 100644 --- a/plugins/Kaleidoscope-Hardware-Keyboardio-Model100/src/kaleidoscope/device/keyboardio/Model100.h +++ b/plugins/Kaleidoscope-Hardware-Keyboardio-Model100/src/kaleidoscope/device/keyboardio/Model100.h @@ -102,6 +102,8 @@ class Model100KeyScanner : public kaleidoscope::driver::keyscanner::Base