hello,
I write sketch to use esp32 that will auto go into sleep mode if the ADC not have any new change value
and use a build_in function from esp package to call it wake_up again: touchSleepWakeUpEnable(T0, to4val - sen_th) . On Arduino, it build normal, now i try import this sketch into PIO, I got error warning while run build: error: ‘touchSleepWakeUpEnable’ was not declared in this scope: touchSleepWakeUpEnable(T0, 10);
please show me any adjustment necessary to let it run normal, thanks you !
The code, when prefixed with #include <Arduino.h>, compiles flawlessly, with the exact platformio.ini you have given and the latest 6.5.0 version of the espressif32 platform.
RAM: [= ] 7.1% (used 23236 bytes from 327680 bytes)
Flash: [== ] 22.1% (used 289581 bytes from 1310720 bytes)
Building .pio/build/esp32dev/firmware.bin
esptool.py v4.5.1
Creating esp32 image...
Merged 3 ELF sections
Successfully created esp32 image.
===========[SUCCESS] Took 3.90 seconds ===========