Error: 'sendTask' was not declared in this scope

Hi,

trying to port another code from Arduino IDE to platformio
I got stuck at this point:

src/main.cpp: In function 'void setup()':
src/main.cpp:37:7: error: 'sendTask' was not declared in this scope
       sendTask,
       ^~~~~~~~
src/main.cpp:37:7: note: suggested alternative: 'ETSTask'
       sendTask,
       ^~~~~~~~
       ETSTask

thought this should be included with
#include <FreeRTOS.h>

platformio.ini:

[env:lolin_s3_mini]
platform = espressif32
board = lolin_s3_mini
framework = arduino
lib_deps =
    https://github.com/WeekendWarrior1/XTronical_XT_DAC_Audio_Mirror.git
    https://github.com/crankyoldgit/IRremoteESP8266.git

Do I need another repo for it ?

thanks

nevermind, found the solution:

void sendTask (void * pvParameters);

however that sadly leads to new problems with XT_Dac_Audio

In file included from C:/Users/123/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/soc/esp32s3/include/soc/rtc_io_reg.h:18,
                 from .pio/libdeps/lolin_s3_mini/XT_DAC_Audio/XT_DAC_Audio.cpp:23:
.pio/libdeps/lolin_s3_mini/XT_DAC_Audio/XT_DAC_Audio.cpp: In function 'void onTimer()':
.pio/libdeps/lolin_s3_mini/XT_DAC_Audio/XT_DAC_Audio.cpp:152:29: error: 'SENS_SAR_DAC_CTRL1_REG' was not declared in this scope
         CLEAR_PERI_REG_MASK(SENS_SAR_DAC_CTRL1_REG, SENS_SW_TONE_EN);  //Disable Tone

thanks max, looks like I have to edit the XT-DAC_Audio.cpp than instead of adding this to main.cpp

1 Like