idf.py add-dependency "cybergear-robotics/ina226"
Not all examples are ported. For further examples, please look at the original project.
- create example project
idf.py create-project-from-example "cybergear-robotics/ina226:read_voltage"
- Go to to example directory (for example
read_voltage
)cd read_voltage
- Set ESP chip
idf.py set-target esp32
- Configure I2C settings
idf.py menuconfig
- Build, flash
idf.py build flash monitor