Why is my Pico W picking daiseys sometimes, and why is it so slow? #2106
-
Beta Was this translation helpful? Give feedback.
Answered by
earlephilhower
Apr 17, 2024
Replies: 1 comment
-
|
USB interrupts, possibly. Or some other periodic IRQ. Use As for the For highest speed set the GPIO pin directly from inside |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
frohro
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

USB interrupts, possibly. Or some other periodic IRQ. Use
setup1andloop1for tight loops since there's nothing running on that core unless you put it there.As for the
digitalWritespeed, it's doing a lot of work besides toggling a pin since it's a generic function and needs to check parameters/etc. Also, afterloopreturns and before it's called again there's other housekeeping being done in the core.For highest speed set the GPIO pin directly from inside
while(1)loop on the 2nd core so that it never exits.