|
1 | 1 | /* |
2 | | - Firmata.h - Firmata library v2.5.0 - 2015-11-7 |
| 2 | + Firmata.h - Firmata library v2.5.1 - 2015-12-26 |
3 | 3 | Copyright (c) 2006-2008 Hans-Christoph Steiner. All rights reserved. |
| 4 | + Copyright (C) 2009-2015 Jeff Hoefs. All rights reserved. |
4 | 5 |
|
5 | 6 | This library is free software; you can redistribute it and/or |
6 | 7 | modify it under the terms of the GNU Lesser General Public |
|
16 | 17 | #include "Boards.h" /* Hardware Abstraction Layer + Wiring/Arduino */ |
17 | 18 |
|
18 | 19 | /* Version numbers for the protocol. The protocol is still changing, so these |
19 | | - * version numbers are important. This number can be queried so that host |
20 | | - * software can test whether it will be compatible with the currently |
21 | | - * installed firmware. */ |
22 | | -#define FIRMATA_MAJOR_VERSION 2 // for non-compatible changes |
23 | | -#define FIRMATA_MINOR_VERSION 5 // for backwards compatible changes |
24 | | -#define FIRMATA_BUGFIX_VERSION 0 // for bugfix releases |
25 | | - |
26 | | -#define MAX_DATA_BYTES 64 // max number of data bytes in incoming messages |
| 20 | + * version numbers are important. |
| 21 | + * Query using the REPORT_VERSION message. |
| 22 | + */ |
| 23 | +#define FIRMATA_PROTOCOL_MAJOR_VERSION 2 // for non-compatible changes |
| 24 | +#define FIRMATA_PROTOCOL_MINOR_VERSION 5 // for backwards compatible changes |
| 25 | +#define FIRMATA_PROTOCOL_BUGFIX_VERSION 1 // for bugfix releases |
| 26 | + |
| 27 | +/* Version numbers for the Firmata library. |
| 28 | + * The firmware version will not always equal the protocol version going forward. |
| 29 | + * Query using the REPORT_FIRMWARE message. |
| 30 | + */ |
| 31 | +#define FIRMATA_FIRMWARE_MAJOR_VERSION 2 |
| 32 | +#define FIRMATA_FIRMWARE_MINOR_VERSION 5 |
| 33 | +#define FIRMATA_FIRMWARE_BUGFIX_VERSION 1 |
| 34 | + |
| 35 | +/* DEPRECATED as of Firmata v2.5.1. As of 2.5.1 there are separate version numbers for |
| 36 | + * the protocol version and the firmware version. |
| 37 | + */ |
| 38 | +#define FIRMATA_MAJOR_VERSION 2 // same as FIRMATA_PROTOCOL_MAJOR_VERSION |
| 39 | +#define FIRMATA_MINOR_VERSION 5 // same as FIRMATA_PROTOCOL_MINOR_VERSION |
| 40 | +#define FIRMATA_BUGFIX_VERSION 1 // same as FIRMATA_PROTOCOL_BUGFIX_VERSION |
| 41 | + |
| 42 | +#define MAX_DATA_BYTES 64 // max number of data bytes in incoming messages |
27 | 43 |
|
28 | 44 | // Arduino 101 also defines SET_PIN_MODE as a macro in scss_registers.h |
29 | 45 | #ifdef SET_PIN_MODE |
|
0 commit comments