Skip to content
Discussion options

You must be logged in to vote

Running in a single task and not using interrupts, there's nothing my code can do until RadioLib returns. Here's some ideas and pointers to solve your problem. Note that I haven't tried any of this, this is just off the top of my head, based on things that have broadly worked for me in other projects on the ESP32.

Multiple tasks

In the same source file, you could create one task, in one function, to do the screen and button, and another task in another function, to do the rest. These tasks can communicate via global variables, which you would want to define as volatile to make sure the compiler understands that the value might change outside of the current code flow. (Otherwise, a loop th…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@NicholasCessna
Comment options

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