I’ve been working on an Arduino sketch using the SparkFun MicroMod Input and Display Carrier Board, with a MicroMod ESP32 processor.
I’m getting the following errors:
c:\Users\Arduino\libraries\SparkFun_HyperDisplay_4DLCD-320240\src\HyperDisplay_4DLCD-320240_4WSPI.cpp: In member function ‘void LCD320240_4WSPI::setBacklight(uint8_t)’:
c:\Users\Arduino\libraries\SparkFun_HyperDisplay_4DLCD-320240\src\HyperDisplay_4DLCD-320240_4WSPI.cpp:209:9: error: ‘ledcAttachPin’ was not declared in this scope; did you mean ‘ledcAttach’?
209 | ledcAttachPin(_bl,15);
| ^~~~~~~~~~~~~
| ledcAttach
c:\Users\Arduino\libraries\SparkFun_HyperDisplay_4DLCD-320240\src\HyperDisplay_4DLCD-320240_4WSPI.cpp:210:9: error: ‘ledcSetup’ was not declared in this scope
210 | ledcSetup(15,12000,8);
| ^~~~~~~~~
exit status 1
Compilation error: exit status 1
Arduino IDE 2.2.1
MicroMod ESP32
SparkFun MicroMod Input and Display Carrier Board
Following libraries installed for the Carrier Board:
SparkFun HyperDisplay Arduino Library
SparkFun HyperDisplay ILI9341 Arduino Library
SparkFun HyperDisplay 4DLCD-320240 Arduino Library
You have the right libraries…which verison of arduino are you using? It might want a downgrade to 1.8x
Usually I recommend a wipe & retry Uninstall for a fresh re-install - #4 by nzcrog - IDE 1.x - Arduino Forum just to nuke/overkill and get it going again…you can copy the arduino15 folder and save it somewhere as a backup if you need to use the other libraries (or just re-install as needed…keeps it a bit cleaner, as my folder/sub-menus grow fast!)
I finally got back to work on this. Option 2 above, worked; compiled with no issues. I’ll try option 3 as well.
Thank you very much for your assistance! I’m very grateful to have it resolved!!
I do have another question concerning the MicroMod Input and Display Carrier Board. With the MicroMod Teensy processor, I get an error indicating: PWM0, D0, and D1are not defined. Are there any workarounds for this I can try? (#define PWM_PIN PWM0 as an example for the first one).