Skip to content

Commit

Permalink
Pulldown button pin so you can put an LED on the probe
Browse files Browse the repository at this point in the history
  • Loading branch information
Architeuthis-Flux committed Mar 6, 2024
1 parent f5d4171 commit 47f1449
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion JumperlessNano/src/FileParsing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ void replaceSFNamesWithDefinedInts(void)
specialFunctionsString.replace("CURRENT_SENSE_MINUS", "109");
specialFunctionsString.replace("CURRENT_SENSE_PLUS", "108");
specialFunctionsString.replace("ISENSE_MINUS", "109");
specialFunctionsString.replace("IENSE_PLUS", "108");
specialFunctionsString.replace("ISENSE_PLUS", "108");

specialFunctionsString.replace("EMPTY_NET", "127");

Expand Down
3 changes: 3 additions & 0 deletions JumperlessNano/src/Probing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,7 @@ int checkProbeButton(void)
{
int buttonState = 0;

pinMode(buttonPin, INPUT);
startProbe();

if (readFloatingOrState(buttonPin, 0) == probe)
Expand All @@ -756,6 +757,8 @@ int checkProbeButton(void)
buttonState = 0;
}
stopProbe();
pinMode(buttonPin, OUTPUT );
digitalWrite(buttonPin, LOW);

return buttonState;
}
Expand Down
6 changes: 3 additions & 3 deletions JumperlessNano/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ void setup()

clearAllNTCC();

delay(20);
setupAdcUsbStuff(); // I took this out because it was causing a crash on
//delay(20);
//setupAdcUsbStuff(); // I took this out because it was causing a crash on
delay(10);

// lastNetConfirm(0);
Expand Down Expand Up @@ -138,7 +138,7 @@ int baudRate = 115200;

int restoredNodeFile = 0;

const char firmwareVersion[] = "1.3.8"; //// remember to update this
const char firmwareVersion[] = "1.3.9"; //// remember to update this

void loop()
{
Expand Down

0 comments on commit 47f1449

Please sign in to comment.