I'm attempting to utilize TCmenu on an
Adafruit Feather TFT ESP32-S2, with limited success. The "Generate Code" function does build the project, which I then open using the Arduino IDE. However, when I try to compile & upload, it fails:
Using previously compiled file: C:\Users\username\AppData\Local\Temp\arduino_build_845093\libraries\IoAbstraction\esp32\ESP32DigitalIO.cpp.o
In file included from C:\Users\username\Documents\Arduino\libraries\IoAbstraction\src\esp32\ESP32AnalogDevice.cpp:8:
C:\Users\username\Documents\Arduino\libraries\IoAbstraction\src\esp32\ESP32AnalogDevice.cpp: In member function 'uint16_t EspAnalogInputMode::getCurrentReading()':
C:\Users\username\Documents\Arduino\libraries\IoAbstraction\src\esp32\ESP32AnalogDevice.h:21:31: error: 'ADC_WIDTH_BIT_12' was not declared in this scope
#define IOA_ESP_BIT_SELECTION ADC_WIDTH_BIT_12
^~~~~~~~~~~~~~~~
C:\Users\username\Documents\Arduino\libraries\IoAbstraction\src\esp32\ESP32AnalogDevice.cpp:71:69: note: in expansion of macro 'IOA_ESP_BIT_SELECTION'
if(adc2_get_raw(static_cast(adcChannelNum), IOA_ESP_BIT_SELECTION, &adcVal) == ESP_OK) {
^~~~~~~~~~~~~~~~~~~~~
C:\Users\username\Documents\Arduino\libraries\IoAbstraction\src\esp32\ESP32AnalogDevice.h:21:31: note: suggested alternative: 'ADC_WIDTH_BIT_13'
#define IOA_ESP_BIT_SELECTION ADC_WIDTH_BIT_12
^~~~~~~~~~~~~~~~
C:\Users\username\Documents\Arduino\libraries\IoAbstraction\src\esp32\ESP32AnalogDevice.cpp:71:69: note: in expansion of macro 'IOA_ESP_BIT_SELECTION'
if(adc2_get_raw(static_cast(adcChannelNum), IOA_ESP_BIT_SELECTION, &adcVal) == ESP_OK) {
^~~~~~~~~~~~~~~~~~~~~
C:\Users\username\Documents\Arduino\libraries\IoAbstraction\src\esp32\ESP32AnalogDevice.cpp: In constructor 'ESP32AnalogDevice::ESP32AnalogDevice()':
C:\Users\username\Documents\Arduino\libraries\IoAbstraction\src\esp32\ESP32AnalogDevice.h:21:31: error: 'ADC_WIDTH_BIT_12' was not declared in this scope
#define IOA_ESP_BIT_SELECTION ADC_WIDTH_BIT_12
^~~~~~~~~~~~~~~~
C:\Users\username\Documents\Arduino\libraries\IoAbstraction\src\esp32\ESP32AnalogDevice.cpp:110:23: note: in expansion of macro 'IOA_ESP_BIT_SELECTION'
adc1_config_width(IOA_ESP_BIT_SELECTION);
^~~~~~~~~~~~~~~~~~~~~
C:\Users\username\Documents\Arduino\libraries\IoAbstraction\src\esp32\ESP32AnalogDevice.h:21:31: note: suggested alternative: 'ADC_WIDTH_BIT_13'
#define IOA_ESP_BIT_SELECTION ADC_WIDTH_BIT_12
^~~~~~~~~~~~~~~~
C:\Users\username\Documents\Arduino\libraries\IoAbstraction\src\esp32\ESP32AnalogDevice.cpp:110:23: note: in expansion of macro 'IOA_ESP_BIT_SELECTION'
adc1_config_width(IOA_ESP_BIT_SELECTION);
^~~~~~~~~~~~~~~~~~~~~
{...}
exit status 1
Error compiling for board Adafruit Feather ESP32-S2 TFT.
Is this because the board is a "-S2" model, not just an ESP32?