X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/blobdiff_plain/a503f71d90ef2d1946c0088e01513805092f3cce..f6ef606bbfb5337e5fc9df4c26bb67890188ce52:/Arduino/libraries/Firmata/examples/StandardFirmataBLE/StandardFirmataBLE.ino diff --git a/Arduino/libraries/Firmata/examples/StandardFirmataBLE/StandardFirmataBLE.ino b/Arduino/libraries/Firmata/examples/StandardFirmataBLE/StandardFirmataBLE.ino index 5775658..7b17b89 100644 --- a/Arduino/libraries/Firmata/examples/StandardFirmataBLE/StandardFirmataBLE.ino +++ b/Arduino/libraries/Firmata/examples/StandardFirmataBLE/StandardFirmataBLE.ino @@ -20,7 +20,7 @@ See file LICENSE.txt for further informations on licensing terms. - Last updated August 17th, 2017 + Last updated April 15th, 2018 */ #include @@ -56,10 +56,6 @@ // 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 *============================================================================*/ @@ -777,9 +773,9 @@ void setup() // 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);