aconno acnsensa project for iOS devices with iBeacon packets support.
Dependencies: LSM9DS1 Si7006A20 aconno_SEGGER_RTT aconno_bsp adc52832_common
Diff: main.cpp
- Revision:
- 31:8199c7c86d0d
- Parent:
- 27:67467a7a56b3
- Child:
- 32:168317e16c69
--- a/main.cpp Mon Aug 06 10:55:34 2018 +0000 +++ b/main.cpp Mon Aug 06 13:46:45 2018 +0200 @@ -42,12 +42,12 @@ #define DEBUG_PRINT (1) #define SLEEP_TIME (0.150) /* Sleep time in seconds */ #define WAKE_UP_TIME (0.150) /* Awake time in ms */ -#define ADV_INTERVAL (1000) /* Advertising interval in ms */ +#define ADV_INTERVAL (100) /* Advertising interval in ms */ #define GO_TO_SLEEP (0) /* Sleep flag: 0 -> Device will not go to sleep, 1 -> Will go to sleep mode */ #define CALIBRATION_STEPS (20) #define TX_POWER_DB (4) -#define INVERT_AXES (0) +#define INVERT_AXES (1) uint8_t gConnected = 0; @@ -377,7 +377,7 @@ mems->startGyroscope(); mems->startMagnetometer(); - eventQueue.call_every(500, updateData); + eventQueue.call_every(100, updateData); // This call stops main thread eventQueue.dispatch_forever();