Closed WildSwan closed 8 months ago
delay()
relies on the scheduler to operate. The scheduler is only initialised on return from the setup()
function. So your example code can never work.
Do not use delay
within the setup
and you will be fine.
Describe the issue delay() function stops the code from continuing.
Sample code:
Expected behavior "Setup starts." should be displayed on the serial monitor.
Desktop (please complete the following information):