20 #ifndef ADAFRUIT_H3LIS331_H 21 #define ADAFRUIT_H3LIS331_H 41 TwoWire *wire = &Wire, int32_t sensorID = 0);
43 bool begin_SPI(uint8_t cs_pin, SPIClass *theSPI = &SPI,
44 int32_t sensor_id = 0);
45 bool begin_SPI(int8_t cs_pin, int8_t sck_pin, int8_t miso_pin,
46 int8_t mosi_pin, int32_t sensor_id = 0);
52 bool _init(int32_t sensor_id);
53 void _scaleValues(
void);
bool begin_I2C(uint8_t i2c_addr=LIS331_DEFAULT_ADDRESS, TwoWire *wire=&Wire, int32_t sensorID=0)
Sets up the hardware and initializes I2C.
Definition: Adafruit_H3LIS331.cpp:25
+/- 400g
Definition: Adafruit_H3LIS331.h:29
#define LIS331_DEFAULT_ADDRESS
Definition: Adafruit_LIS331.h:49
Class that stores state and functions for interacting with Adafruit_H3LIS331.
Definition: Adafruit_H3LIS331.h:36
void setRange(h3lis331dl_range_t range)
Sets the measurement range for the H3LIS331.
Definition: Adafruit_H3LIS331.cpp:146
Class that stores state and functions for interacting with Adafruit_LIS331.
Definition: Adafruit_LIS331.h:131
h3lis331dl_range_t
Definition: Adafruit_H3LIS331.h:26
bool begin_SPI(uint8_t cs_pin, SPIClass *theSPI=&SPI, int32_t sensor_id=0)
Sets up the hardware and initializes hardware SPI.
Definition: Adafruit_H3LIS331.cpp:48
+/- 100g
Definition: Adafruit_H3LIS331.h:27
+/- 200g
Definition: Adafruit_H3LIS331.h:28
h3lis331dl_range_t getRange(void)
Gets the measurement range for the H3LIS331.
Definition: Adafruit_H3LIS331.cpp:154
Adafruit_H3LIS331()
Instantiates a new H3LIS331 class.
Definition: Adafruit_H3LIS331.cpp:13