PB14 and PB15 are the pins the GD32 uses to talk check the prog key. The

bootloader doesn't fully deconfigure them, leading to potentially bad
reads of column 0, so we turn them off ourselves
pull/1165/head
Jesse Vincent 2 years ago
parent 43f0a7e4cb
commit 23400122f9
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -130,6 +130,12 @@ void Model100KeyScanner::enableScannerPower(void) {
//
pinMode(PB9, OUTPUT_OPEN_DRAIN);
digitalWrite(PB9, LOW);
pinMode(PB14, INPUT);
digitalWrite(PB14, LOW);
pinMode(PB15, INPUT);
digitalWrite(PB15, LOW);
}
void Model100KeyScanner::disableScannerPower(void) {

Loading…
Cancel
Save