boarchuz / HULP

ESP32 ULP Coprocessor Helper
MIT License
180 stars 18 forks source link

PlatformIO Support #2

Closed salim97 closed 4 years ago

salim97 commented 4 years ago

hi i had an issue using your library i copied all .h files from "include" folder and .cpp files from "src" folder and put them in together in my project when i hit compile i get errors

In file included from src\include\hulp.cpp:1: src\include\hulp.h:9:10: fatal error: hal/gpio_types.h: No such file or directory

include "hal/gpio_types.h"

      ^~~~~~~~~~~~~~~~~~

compilation terminated. In file included from src\include\hulp_debug.h:4, from src\include\hulp_debug.cpp:1: src\include\hulp.h:9:10: fatal error: hal/gpio_types.h: No such file or directory

include "hal/gpio_types.h"

      ^~~~~~~~~~~~~~~~~~

compilation terminated. In file included from src\include\hulp_touch.cpp:1: src\include\hulp_touch.h:7:10: fatal error: soc/touch_sensor_channel.h: No such file or directory

include "soc/touch_sensor_channel.h"

      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

i'm using platformio [env:esp32doit-devkit-v1] platform = espressif32 board = esp32doit-devkit-v1 framework = arduino

boarchuz commented 4 years ago

It's targeting IDF 4.2 which Arduino doesn't support yet. You could try any of the following:

salim97 commented 4 years ago

i tried third solution and not all macros works so i will wait for the official esp32 arduino support thanks for the help