Closed
Description
Board
ESP32 DEVKIT V1
Device Description
Trying new 3.0.0-alpha version, my sketch don't compile because some internal function seems not be exposed anymore:
error: 'esp_random' was not declared in this scope; did you mean 'srandom'?
error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'?
error: 'ledcSetup' was not declared in this scope
Hardware Configuration
no special configuration
Version
latest development Release Candidate (RC-X)
IDE Name
Arduino IDE V2
Operating System
Win11 x64
Flash frequency
80Mhz
PSRAM enabled
yes
Upload speed
115200
Description
Can't compile on 3.0.0-alpha
Sketch
int i = esp_random() % 10;
ledcSetup(GPIO_NUM_18, 100, 8);
ledcAttachPin(GPIO_NUM_18, 0);
Debug Message
exit status 1
Compilation error: 'esp_random' was not declared in this scope; did you mean 'srandom'?
Other Steps to Reproduce
on 2.0.x version it's compile correctly
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.