arduino / arduino-examples

Arduino IDE bundled examples
Creative Commons Zero v1.0 Universal
90 stars 41 forks source link

ArduinoISP, PIN_MISO keeps the PULL_UP enabled after finish #33

Open deulis opened 6 years ago

deulis commented 6 years ago

Using ArduinoISP, when programming is over the PIN_MISO remain with the PULL_UP enable. This can interfere with other SPI devices connected at the same time on the SPI bus (as it happened in my case).

My solution was to add: pinMode(PIN_MISO, INPUT); in the _endpmode() method.

I recommend to add this line in the official ArduinoISP sketch.