IoAbstraction
IoAbstraction copied to clipboard
ESP32-C3 gives me a compile error
I get the following error and cannot compile
.pio/libdeps/seeed_xiao_esp32c3/IoAbstraction/src/esp32/ESP32AnalogDevice.cpp:14:10: fatal error: driver/dac.h: No such file or directory #include <driver/dac.h> ^~~~~~~~~~~~~~
I think the cause is the same as here https://github.com/davetcc/IoAbstraction/issues/161
I changed #ifndef CONFIG_IDF_TARGET_ESP32S3 to CONFIG_IDF_TARGET_ESP32C3 in ESP32AnalogDevice.cpp and the compilation was successful and tcMenu works.
Operation confirmed with Seeed Studio XIAO ESP32C3
Ah yes, another board without the dac, I'll get that added to the header, thanks for confirming.
Fixed by PR to use include check instead of looking for flags.