circuits_i2c icon indicating copy to clipboard operation
circuits_i2c copied to clipboard

Support builds that completely exclude I2CDev support

Open fhunleth opened this issue 4 months ago • 0 comments

This removes both the Elixir module and the NIF. There's no longer any unintended NIF builds or loads or anything extra.

To enable this, either set the :default_backend application environment key or force it by setting :include_i2c_dev. Most users probably want:

config :circuits_i2c, default_backend: MyI2CBackend

This fixes the issue reported at https://elixirforum.com/t/circuits-sim-in-a-release/72076/3.

fhunleth avatar Aug 16 '25 16:08 fhunleth