Replies: 1 comment
-
Hi @kr4fty So when you do:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone, I'm working with a stm32F103 mcu. It turns out that I use millis() to refresh the reading of data through analogRead. The thing is that I use reading from a button, which would make me activate a process and also produce a tone, through tone(). I notice that when I use millis it stops at that moment and continues once the tone() function has finished, as if tone did not take any time.
The problem comes because both millis() and tone() use the same timer?
my code:
my output:
Beta Was this translation helpful? Give feedback.
All reactions