# INA226 component for ESP-IDF [![Examples build](https://github.com/cybergear-robotics/ina226/actions/workflows/build_example.yml/badge.svg)](https://github.com/cybergear-robotics/ina226/actions/workflows/build_example.yml) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/cybergear-robotics/ina226/graphs/commit-activity) [![Framework](https://img.shields.io/badge/Framework-ESP_IDF-orange.svg)](https://shields.io/) [![Language](https://img.shields.io/badge/Language-C-purple.svg)](https://shields.io/) ## Using component ```bash 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 ```bash idf.py create-project-from-example "cybergear-robotics/ina226:read_voltage" ``` 2. Go to to example directory (for example `read_voltage`) `cd read_voltage` 3. Set ESP chip `idf.py set-target esp32` 4. Configure I2C settings `idf.py menuconfig` 5. Build, flash `idf.py build flash monitor`
611a29c760db46787d4c3edded8a90e3232efe17
idf.py add-dependency "cybergear-robotics/icm20948^1.0.0"