diff --git a/build/shared/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino b/build/shared/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino index 0569a3464..8a63e8e8b 100644 --- a/build/shared/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino +++ b/build/shared/examples/11.ArduinoISP/ArduinoISP/ArduinoISP.ino @@ -274,6 +274,10 @@ void start_pmode() { void end_pmode() { SPI.end(); + // We're about to take the target out of reset + // so configure SPI pins as input + pinMode(MOSI, INPUT); + pinMode(SCK, INPUT); reset_target(false); pinMode(RESET, INPUT); pmode = 0;