See file LICENSE.txt for further informations on licensing terms.
- Last updated August 17th, 2017
+ Last updated April 15th, 2018
*/
#include <Servo.h>
// the minimum interval for sampling analog input
#define MINIMUM_SAMPLING_INTERVAL 1
-// min cannot be < 0x0006. Adjust max if necessary
-#define FIRMATA_BLE_MIN_INTERVAL 0x0006 // 7.5ms (7.5 / 1.25)
-#define FIRMATA_BLE_MAX_INTERVAL 0x0018 // 30ms (30 / 1.25)
-
/*==============================================================================
* GLOBAL VARIABLES
*============================================================================*/
// set the BLE connection interval - this is the fastest interval you can read inputs
stream.setConnectionInterval(FIRMATA_BLE_MIN_INTERVAL, FIRMATA_BLE_MAX_INTERVAL);
// set how often the BLE TX buffer is flushed (if not full)
- stream.setFlushInterval(FIRMATA_BLE_MAX_INTERVAL);
+ stream.setFlushInterval(FIRMATA_BLE_TXBUFFER_FLUSH_INTERVAL);
-#ifdef BLE_REQ
+#ifdef IS_IGNORE_BLE_PINS
for (byte i = 0; i < TOTAL_PINS; i++) {
if (IS_IGNORE_BLE_PINS(i)) {
Firmata.setPinMode(i, PIN_MODE_IGNORE);