too many arguments to function 'hw_timer_t* timerBegin(uint32_t)'
- ESP32 core 3.x
You may see
Why it happens
- Timer commands changed in ESP32 core 3.x.
How to fix it
timerBegin(0, 80, true)becomestimerBegin(1000000).timerAttachInterrupt(timer, &fn, true)becomestimerAttachInterrupt(timer, &fn).timerAlarmWrite(…)plustimerAlarmEnable(…)becometimerAlarm(timer, 1000000, true, 0).- Or install ESP32 core 2.0.17.
It worked if: Verify passes and the timer ticks.
Related errors
Seen in a real run (some lines are close variants of it). Produced with Arduino CLI 1.5.1 and ESP32 core 3.1.3. Sources: Arduino ESP32: moving from 2.x to 3.0.
Didn't help? Search another error or ask us.

