Skip to main content

DA213B

Driver for DA213B accelerometer at address 0x27.

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