Closed gdesoto closed 2 years ago
Glad that it worked and you figured out how to fix it.
Perhaps there's a way to handle what gets compiled with something like #if CONFIG_IDF_TARGET_ESP32C3
Yes that’s an idea that is on my mind since long. I’m not on holiday’s but in a few days will be back maybe you can help me figure out how to organize this in CMakeLists for sure there is a smart way to exclude this. Other possibility would be to add in Kconfig the driver option: SPI or Parallel (EPDiy) and if you select SPI it will automatically exclude that files plus being a bit more consistent on the fact that SPI pins should be defined. Let’s give it a round of though and maybe if you have some time you can make a pull request? Make sure to give a good read to the esp-idf build system
Forgot that “fixes ID” closes the ticket automatically;)
Closing here since the issue is solved. Thanks for reporting. Let's open a new one when we figure out what will be a more practical way to do this.
Describe the bug Using an ESP32-C3 (ESP32-C3-DevKitM-1 dev board) on a fresh copy of the code, the build fails to compile with the following error.
To Reproduce Write meaningful steps to reproduce the behavior:
SRCS "demos/demo-epaper.cpp"
inmain/CMakeLists.txt
.Expected behavior Build Successfully
Desktop (please complete the following information):
Additional context I was able to resolve the issue by going into the
components/CalEPD/CMakeLists.txt
and commenting out the following lines:Interestingly, the comment just above that line says to uncomment those lines for parallel displays, but they were already uncommented. So I'm not sure which way was intended.
A few possible solutions:
#if CONFIG_IDF_TARGET_ESP32C3
CONFIG_IDF_TARGET_ARCH_RISCV
that could be used to flag which lines compile.I'm pretty new to the C / C++ world so it took me a sec to figure out what was going on. I appreciate your work and effort with this library.