Standardize how we turn on the keyscanner power net

pull/1014/merge
Jesse Vincent 3 years ago
parent 75acb8de40
commit 5c9de2f58f
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -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);

@ -102,6 +102,8 @@ class Model100KeyScanner : public kaleidoscope::driver::keyscanner::Base<Model10
static uint8_t previousPressedKeyswitchCount();
static void setKeyscanInterval(uint8_t interval);
static void enableScannerPower();
static void disableScannerPower();
protected:
static driver::keyboardio::keydata_t leftHandState;
@ -110,8 +112,6 @@ class Model100KeyScanner : public kaleidoscope::driver::keyscanner::Base<Model10
static driver::keyboardio::keydata_t previousRightHandState;
static void actOnHalfRow(byte row, byte colState, byte colPrevState, byte startPos);
static void enableScannerPower();
static void disableScannerPower();
};
#else // ifndef KALEIDOSCOPE_VIRTUAL_BUILD
class Model100KeyScanner;

Loading…
Cancel
Save