Skip to content

how can i run audio.loop() in a separate task? #340

Answered by Fre19
renatoianhez asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,
Have a look at:
https://randomnerdtutorials.com/esp32-dual-core-arduino-ide/
The normal core in use in the esp32 is core 1. I suggest to leave it there and put the extra's like display code in core 0. When you use core 0 as the example describes, do not forget to put your 'entire display setup code block' in core 0 (not in setup()!), just after the void "your function name" (void * parameter) code line. Then write the display code just after the for(;;) , which is then the loop-forever in core 0
success
Fre19

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@renatoianhez
Comment options

@renatoianhez
Comment options

Answer selected by renatoianhez
Comment options

You must be logged in to vote
3 replies
@biologist79
Comment options

@rboeije1
Comment options

@biologist79
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants