-
Notifications
You must be signed in to change notification settings - Fork 7.6k
ESP32 C3 Loop runs slow if Serial is not connected #7885
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Similar to #6983 |
I also tested the sketch from #6983 using the LILO C3 Mini board to make sure that it has the right configuration. |
thanks for testing this @SuGlider, I'm adding it to 2.0.8 milestone to not forget to close it after the test of author of this issue. |
I have tested mentioned workaround and it works with my sketch perfectly. Thank you :) |
Closing this issue. Feel free to reopen it whenever necessary. |
Board
Wemos C3 Pico
Device Description
Wemos C3 Pico with WS2812B LEDs powered through MOSFET and keypad
Hardware Configuration
GPIO21 is connected to MOSFET which drives power to LEDs
GPIO7 is connected to DIN on LEDs
GPIO 5, 4, 0 and 1 is connected to Keypad Matrix rows
GPIO 8,10 and 20 is connected to Keypad Matrix columns
Version
v2.0.7
IDE Name
Arduino IDE
Operating System
Windows 10
Flash frequency
80MHz
PSRAM enabled
no
Upload speed
921600
Description
Loop function runs "slow" if Serial is not connected to Serial monitor on PC.
ESP after bootup reacts to key presses on Keypad and lights up corresponding LED for indication of keypress.
For power saving i'm using inactivity timer for 30 seconds after which ESP goes to deep sleep. I have attached external interrupts to keypad so i can wake it up. After wake up Loop fn runs "slow". Before deep sleep everything is snappy. I can press how many key i want and there is basically no delay. After deep sleep I can press keys normally, but after 8. key press there starts to be delay on key presses. I can see it with LED indicator.
If i disable Serial.begin and remove all prints, everything works as expected.
Sketch
Debug Message
Other Steps to Reproduce
If i disable Serial in code everything works correctly.
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: