DEKI/ENGINE docs
manual api reference
deki-imu 0.40.1
Deki package reference
deki-imu

Accelerometer + gyroscope peripheral interface with LSM6DS3 backend (hardware pedometer)

Repository: github.com/dekiengine/deki-imu · Latest release: 0.40.0 · Needs engine 0.40.0+ · Requires: deki-i2c

Install with DekiEditor --packages-add deki-imu <project>, or from the Package Manager. The engine's own components and C++ API are in the Deki docs.

Shown in the editor as IMU (Accelerometer + Gyroscope).

Components

Component Category Description
LSM6DS3IMUComponent Sensors Reads the LSM6DS3 motion sensor over I2C, step counter included.

Feature flags

Parts you can leave out of a build. A feature with a define is switched there; the rest are stripped with their components.

Feature Define Default
LSM6DS3 (I²C, 6-axis + hardware pedometer) DEKI_FEATURE_IMU_LSM6DS3 on

Component reference

LSM6DS3IMUComponent

Reads the LSM6DS3 motion sensor over I2C, step counter included.

Inspector name: LSM6DS3 IMU · Category: Sensors · Type: DekiImu::LSM6DS3IMUComponent

Property Type Default Constraints Description
i2cPort int32 0 0 to 3 Which I2C bus the sensor is on. Must match the I2C Bus component that set that port up.
i2cAddress int32 106 0 to 127 The sensor's address on the bus, set by its SDO/SA0 pin: 0x6A when that pin is low, 0x6B when high. Two of these chips can share a bus by wiring that pin differently.
enablePedometer bool true Run the chip's built-in step counter. It counts in hardware, so steps keep accumulating without the CPU waking, at a small extra current draw.

Changelog

0.40.0

Changed

  • minEngine 0.40.0: built against engine 0.40.0. A build of this package from before does not load and is rebuilt.

0.22.0

Changed

  • Translations are keyed by the editor's names with their acronyms ("I2C Port", "SPI Host" rather than "I 2c Port", "Spi Host"), which the 0.22 editor shows.
  • minEngine 0.22.0: built against engine 0.22.0. A build of this package from before does not load and is rebuilt.

Earlier releases: CHANGELOG.md.


Generated from the package's reflection data (engine 0.40.1). Property names are the keys used in scene files. Renames keep an alias (compatibility).