arduino-examples
arduino-examples copied to clipboard
ArduinoISP: Add an option to enable a 4 MHz clock signal on pin 3
Moved from https://github.com/arduino/Arduino/pull/8757 by @procsynth
This clock signal can be used to reprogram the fuses of an AVR that has been set wrong (ie. when an external clock has been configured but the board/chip does not have one).
This is disabled by default. We check that we compile for known chips before enabling the clock generation. Maybe there is other chips that support this code.
Hi @procsynth , thanks for your PR.
ArduinoISP sketch is meant to run on all Arduinos (also the ones with ARM chips), so it would be nice to keep the sketch functionalities in sync between all the targets.
The functionality is interesting and should be expanded a bit, like having a couple of options for the pin and the frequency to use, and less magic numbers :wink:
Hi @facchinm, thanks for your reply. I did not think in the scope of the whole Arduino project. I'll make the changes requested, explain and test the code a little better when I have some time :)
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.
:white_check_mark: per1234
:x: pr1csynth
You have signed the CLA already but the status is still pending? Let us recheck it.