DA213B
Driver for DA213B accelerometer at address 0x27
.
- Services: accelerometer
- Datasheet
- Source
Usage
import {
startIMU,
startAccelerometer,
DA213BDriver,
} from "@devicescript/drivers"
const driver = new DA213BDriver()
const acc = await startAccelerometer(driver, {})
acc.reading.subscribe(reading => {
console.log(`x: ${reading[0]}, y: ${reading[0]}, z: ${reading[0]}`)
})
Configuration
- Configure I2C throught the board configuration
- Check that you are using the correct I2C address