Hello,
I am trying to use Snap4Arduino via Bluetooth connection with an Arduino compatible Pro Micro. I have gotten this to work by replacing Serial with Serial1 in Firmata but when I try to use Software Serial it does not work. I have used Software Serial in other projects and am a bit confused as to why this happens. If anyone could help me figure out a solution, that would be greatly appreciated. This is the only part I am changing in Firmata:
SoftwareSerial toky = SoftwareSerial(8, 7);
void setup()
{
Firmata.setFirmwareVersion(FIRMATA_FIRMWARE_MAJOR_VERSION, FIRMATA_FIRMWARE_MINOR_VERSION);
Firmata.attach(ANALOG_MESSAGE, analogWriteCallback);
Firmata.attach(DIGITAL_MESSAGE, digitalWriteCallback);
Firmata.attach(REPORT_ANALOG, reportAnalogCallback);
Firmata.attach(REPORT_DIGITAL, reportDigitalCallback);
Firmata.attach(SET_PIN_MODE, setPinModeCallback);
Firmata.attach(SET_DIGITAL_PIN_VALUE, setPinValueCallback);
Firmata.attach(START_SYSEX, sysexCallback);
Firmata.attach(SYSTEM_RESET, systemResetCallback);
//Serial1.begin(57600);
//Firmata.begin(Serial1);
toky.begin(57600);
Firmata.begin(toky);
while (!toky) {
; // wait for serial port to connect. Needed for ATmega32u4-based boards and Arduino 101
}
systemResetCallback(); // reset to default config
}