I need to read some data from a file (fs.read) and later on write a lot of data to uart.
This takes some time, and I don't want to block other code during this.
Is Espruino adding idles states internally, or do I need to add something like setTimeout(function(){...},1) inside the loops for reading from SD and writing to UART ?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I need to read some data from a file (fs.read) and later on write a lot of data to uart.
This takes some time, and I don't want to block other code during this.
Is Espruino adding idles states internally, or do I need to add something like setTimeout(function(){...},1) inside the loops for reading from SD and writing to UART ?