Skip to content

ESP-IDF library for voltage/current sensor INA226

License

Notifications You must be signed in to change notification settings

cybergear-robotics/ina226

Repository files navigation

INA226 component for ESP-IDF

Examples build License: MIT Maintenance Framework Language

Using component

idf.py add-dependency "cybergear-robotics/ina226"

Example

Not all examples are ported. For further examples, please look at the original project.

  1. create example project
idf.py create-project-from-example "cybergear-robotics/ina226:read_voltage"
  1. Go to to example directory (for example read_voltage) cd read_voltage
  2. Set ESP chip idf.py set-target esp32
  3. Configure I2C settings idf.py menuconfig
  4. Build, flash idf.py build flash monitor