21#include <SparkFun_Toolkit.h>
30SET_LOOP_TASK_STACK_SIZE(60 * 1024);
57 _theI2CBus.init(wirePort, address);
58 _theI2CBus.setByteOrder(SFTK_MSBFIRST);
70 return _theI2CBus.ping() == ksfTkErrOk;
74 sfTkArdI2C _theI2CBus;
99 bool begin(uint8_t csPin, SPIClass &spiPort = SPI,
100 SPISettings spiSettings = SPISettings(100000, MSBFIRST, SPI_MODE0))
104 _theSPIBus.init(spiPort, spiSettings, csPin,
true);
109 return rc == ksfTkErrOk ? true :
false;
113 sfTkArdSPI _theSPIBus;
Class for interfacing with the BMV080 sensor using I2C communication.
Definition: SparkFun_BMV080_Arduino_Library.h:43
bool isConnected()
Checks if the Device is connected.
Definition: SparkFun_BMV080_Arduino_Library.h:68
bool begin(const uint8_t address=SF_BMV080_DEFAULT_ADDRESS, TwoWire &wirePort=Wire)
Begins the Device with I2C as the communication bus.
Definition: SparkFun_BMV080_Arduino_Library.h:54
Class for interfacing with the BMV080 sensor using SPI communication.
Definition: SparkFun_BMV080_Arduino_Library.h:87
bool begin(uint8_t csPin, SPIClass &spiPort=SPI, SPISettings spiSettings=SPISettings(100000, MSBFIRST, SPI_MODE0))
Begins the Device with SPI as the communication bus.
Definition: SparkFun_BMV080_Arduino_Library.h:99
Definition: sfDevBMV080.h:42
sfTkError_t begin(sfTkIBus *theBus=nullptr)
Begins communication with the BMV080 sensor.
Definition: sfDevBMV080.cpp:131
Header file for the SparkFun BMV080 Library.
#define SF_BMV080_DEFAULT_ADDRESS
Definition: sfDevBMV080.h:35