[Logo] TCC discussion forum
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Top Downloads] Top Downloads   [Groups] Back to home page 
[Register] Register /  [Login] Login 


This forum is read only and new users cannot register, please ask all new questions either using GitHub discussions, or in Arduino forum tagging @davetcc.

Adafruit Feather TFT ESP32-S2 RSS feed
Forum Index » tcMenu Arduinio library
Author Message
mystic1


Joined: Mar 28, 2022
Messages: 3
Offline
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?
davetcc


Joined: Jan 19, 2019
Messages: 686
Offline
Unfortunately when I tried an s2 a few months ago many common libraries didn’t work so I abandoned the effort. However it seems a few of the dependencies now work on the s2. I’ll try and test again soon. I thought there was a recent PR in IoAbstraction to support the S2 model but I need to dig back into this to remember. I think it was for exactly this
davetcc


Joined: Jan 19, 2019
Messages: 686
Offline
I’ll just add that it works really well on regular ESP32, and the major thing holding back S2 support was that last time I tried it the graphics libraries I use didn’t work with it.

However, that stumbling block seems removed. I have a device and will get it fully working soon.
mystic1


Joined: Mar 28, 2022
Messages: 3
Offline
Very happy to hear that you'll be able to make progress on this item! Thank you so much!!
davetcc


Joined: Jan 19, 2019
Messages: 686
Offline
Will be fixed in IoAbstraction 2.3 due very soon. It also finally sorts out the annoyance where encoders always needed pinA to be an interrupt capable pin.

See

https://github.com/davetcc/IoAbstraction/issues/152
davetcc


Joined: Jan 19, 2019
Messages: 686
Offline
The fix was released earlier today, 2.3 of both IoAbstraction and tcMenu are available now, I have built and tested a menu on ESP32S2 with an OLED screen and rotary encoder.
mystic1


Joined: Mar 28, 2022
Messages: 3
Offline
Confirmed! My project does now compile with no errors or warnings!
(It doesn't WORK, but that's clearly an issue on my side, not a problem with the libraries/environment)
Thank you very much for your hard work!!
davetcc


Joined: Jan 19, 2019
Messages: 686
Offline
Just out of interest, did you manage to get your project working on ESP32-S2?
 
Forum Index » tcMenu Arduinio library
Go to:   
Mobile view
Powered by JForum 2.7.0 © 2020 JForum Team • Maintained by Andowson Chang and Ulf Dittmer

This site uses cookies to analyse traffic, serve ads by Google AdSense (non-personalized in EEA/UK), and to record consent. We also embed Twitter, Youtube and Disqus content on some pages, these companies have their own privacy policies.

Our privacy policy applies to all pages on our site

Should you need further guidance on how to proceed: External link for information about cookie management.