Skip to content

Commit

Permalink
Allow firmata access to all externally accessible board pins.
Browse files Browse the repository at this point in the history
Remove ignore check from board pins 1, 11, 9 which prevented firmata and firmata users from accessing them.  The only important pins to cut off access to are the internal LIS3DH CS lines which aren't exposed on an external pad.
  • Loading branch information
tdicola committed Feb 21, 2018
1 parent 7bce9c4 commit 388425e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions CircuitPlaygroundFirmata/CircuitPlaygroundFirmata.ino
Original file line number Diff line number Diff line change
Expand Up @@ -1134,10 +1134,6 @@ void setup()

// Tell Firmata to ignore pins that are used by the Circuit Playground hardware.
// This MUST be called or else Firmata will 'clobber' pins like the SPI CS!
pinConfig[1] = PIN_MODE_IGNORE; // Pin 1 = LIS3DH interrupt
pinConfig[11] = PIN_MODE_IGNORE; // Pin 11 = SPI
pinConfig[10] = PIN_MODE_IGNORE; // Pin 10 = SPI
pinConfig[9] = PIN_MODE_IGNORE; // Pin 9 = SPI
pinConfig[28] = PIN_MODE_IGNORE; // Pin 28 = D8 = LIS3DH CS
pinConfig[26] = PIN_MODE_IGNORE; // Messes with CS too?

Expand Down

0 comments on commit 388425e

Please sign in to comment.