Skip to content

Commit

Permalink
Enable SPI in default example
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrawehr committed Jul 3, 2021
1 parent 6427169 commit 1307622
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/ConfigurableFirmata/ConfigurableFirmata.ino
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#define ENABLE_BASIC_SCHEDULER
#define ENABLE_SERIAL
#define ENABLE_I2C
#define ENABLE_SPI
#define ENABLE_ANALOG
#define ENABLE_DIGITAL

Expand Down Expand Up @@ -39,6 +40,12 @@ AnalogOutputFirmata analogOutput;
I2CFirmata i2c;
#endif

#ifdef ENABLE_SPI
#include <Wire.h>
#include <SpiFirmata.h>
SpiFirmata spi;
#endif

#ifdef ENABLE_ONE_WIRE
#include <OneWireFirmata.h>
OneWireFirmata oneWire;
Expand Down

0 comments on commit 1307622

Please sign in to comment.