Skip to content

Commit

Permalink
Merge pull request #163 from PizzaProgram/patch-2
Browse files Browse the repository at this point in the history
Adding option to start all output pins at "HIGH state"
  • Loading branch information
pgrawehr authored Feb 26, 2024
2 parents 6a8beb3 + b168902 commit b5fe2c6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/ConfigurableFirmata/ConfigurableFirmata.ino
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,10 @@ void systemResetCallback()
}
else if (IS_PIN_DIGITAL(i))
{
Firmata.setPinMode(i, PIN_MODE_OUTPUT);
Firmata.setPinMode (i, PIN_MODE_OUTPUT);
// Uncomment following 2 lines, if you want to start the board at HIGH output state on powering up:
// Firmata.digitalWrite(i, HIGH);
// Firmata.setPinState (i, HIGH);
}
}
#endif
Expand Down

0 comments on commit b5fe2c6

Please sign in to comment.