It defines some basic information about the sensor (sensor limits, etc.), and returns standard SI units of a specific type and scale for each supported sensor type. The Adafruit Unified Sensor Library ( ) provides a common interface and data type for any supported sensor. What is the Adafruit Unified Sensor Library?
More information on the ADX元45 can be found in the datasheet: Compatibility MCU The Adafruit_ADX元45 driver takes advantage of I2C mode to reduce the total pin count required to use the sensor. The ADX元45 is a digital accelerometer that supports both SPI and I2C mode, with adjustable data rata and 'range' (+/-2/4/8/16g). Tested and works great with the Adafruit ADX元45 Breakout BoardĪdafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit! About the ADX元45
This driver is for the Adafruit ADX元45 Breakout ( ), and is based on Adafruit's Unified Sensor Library (Adafruit_Sensor).