sketch: GAL20V8 - disable pull-up on DOUT when inactive

This commit is contained in:
ole00 2023-04-01 23:10:12 +01:00
parent 8d12ec9e58
commit 5bcb23f1a2

View File

@ -327,8 +327,9 @@ static void setPinMux(uint8_t pm) {
pinMode(PIN_ZIF10, pm);
pinMode(PIN_ZIF11, pm);
pinMode(PIN_ZIF13, pm);
pinMode(PIN_ZIF14, pm);
pinMode(PIN_ZIF15, INPUT_PULLUP); //DOUT
pinMode(PIN_ZIF14, pm);
// ensure pull-up is enabled during reading and disabled when inactive
pinMode(PIN_ZIF15, pm == OUTPUT ? INPUT_PULLUP: INPUT); //DOUT
pinMode(PIN_ZIF16, pm);
// ensure ZIF10 GND pull is disabled
digitalWrite(PIN_ZIF_GND_CTRL, LOW);