X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/Cipher_code.git/blobdiff_plain/3935cf9ac06b7bc328ee3d942edb5f60130d5b74..d8de23027e190ab94ece38a9411fefb995bab460:/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);