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

I²C bus peripheral interface with an editor-configurable bus component

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

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

Shown in the editor as I2C.

Components

Component Category Description
I2CBusComponent System Starts one I2C bus at boot. Every chip on that bus shares it.

Component reference

I2CBusComponent

Starts one I2C bus at boot. Every chip on that bus shares it.

Inspector name: I2C Bus Component · Category: System · Type: DekiI2c::I2CBusComponent

Property Type Default Constraints Description
i2cPort int32 0 0 to 3 Which of the chip's I2C controllers to use. Most boards only wire one, so 0 unless your schematic says otherwise.
sdaPin int32 21 0 to 48 GPIO carrying the I2C data line (SDA). Must match how the sensors are wired; every device on this bus shares it.
sclPin int32 22 0 to 48 GPIO carrying the I2C clock line (SCL). Shared by every device on this bus, like SDA.
i2cHz int32 400000 10000 to 1e+06 Bus speed. 100 kHz is the safe standard mode, 400 kHz the usual fast mode. Long wires or many devices need the lower figure; too high shows up as reads that intermittently fail.

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).