Skip to content

ICSP header pinout added to the comment section of 'ArduinoISP.pde' #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions app/src/processing/app/debug/AvrdudeUploader.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ private Collection getProgrammerCommands(Target target, String programmer) {
Map<String, String> programmerPreferences = target.getProgrammers().get(programmer);
List params = new ArrayList();
params.add("-c" + programmerPreferences.get("protocol"));

if (programmerPreferences.get("bitclock") != null) {
params.add("-B" + Integer.parseInt(programmerPreferences.get("bitclock")));
}

if ("usb".equals(programmerPreferences.get("communication"))) {
params.add("-Pusb");
Expand Down
16 changes: 16 additions & 0 deletions build/shared/examples/ArduinoISP/ArduinoISP.pde
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,22 @@
// 12: MISO
// 13: SCK

//
// target boards with an ICSP connector:
//
// -----------
// - 5 3 1 -
// - 6 4 2 -
// -----------
//
// 1: MOSI
// 2: +5V
// 3: SCK
// 4: MISO
// 5: RESET
// 6: GND
//

// Put an LED (with resistor) on the following pins:
// 9: Heartbeat - shows the programmer is running
// 8: Error - Lights up if something goes wrong (use red if that makes sense)
Expand Down