bogde / HX711

An Arduino library to interface the Avia Semiconductor HX711 24-Bit Analog-to-Digital Converter (ADC) for Weight Scales.
MIT License
876 stars 535 forks source link

Add CMakeLists.txt for Arduino as a ESP-IDF component. #218

Closed gavingc closed 2 years ago

gavingc commented 2 years ago

Hi,

Request to add CMakeLists.txt so that HX711 library can be directly used as an ESP-IDF component as described by the build system documentation: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/build-system.html

Similar to, and in conjunction with, Arduino as a ESP-IDF component: https://docs.espressif.com/projects/arduino-esp32/en/latest/esp-idf_component.html

I also have a working example that is tested on an ESP32 development board, happy to add that to another pull request or this one.

bogde commented 2 years ago

I just merged your pull request. Thanks!

Examples are always welcome as well.