1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-08-18 17:42:23 +03:00

updated Firmata to version 2.3.6

This commit is contained in:
Jeff Hoefs
2013-08-22 22:50:31 -04:00
parent b84f276872
commit 15a08e66e7
11 changed files with 1671 additions and 8 deletions

View File

@@ -67,14 +67,18 @@ void FirmataClass::begin(void)
void FirmataClass::begin(long speed)
{
Serial.begin(speed);
begin(Serial);
blinkVersion();
FirmataSerial = &Serial;
blinkVersion();
printVersion();
printFirmwareVersion();
}
/* begin method for overriding default stream */
void FirmataClass::begin(Stream &s)
{
FirmataSerial = &s;
// do not call blinkVersion() here because some hardware such as the
// Ethernet shield use pin 13
printVersion();
printFirmwareVersion();
}

View File

@@ -21,7 +21,7 @@
* installed firmware. */
#define FIRMATA_MAJOR_VERSION 2 // for non-compatible changes
#define FIRMATA_MINOR_VERSION 3 // for backwards compatible changes
#define FIRMATA_BUGFIX_VERSION 5 // for bugfix releases
#define FIRMATA_BUGFIX_VERSION 6 // for bugfix releases
#define MAX_DATA_BYTES 32 // max number of data bytes in non-Sysex messages