Hello,
I want to run some gpio functions (raise a bunch of lines for time t) when I receive commands over serial, but when I perform these gpio tasks, I want to still be able to read serial data if available. Right now I have a delay function to raise the gpio line for the desired time and in that time any serial data is just stored in the buffer(or possibly lost) and only acted upon once im out of the delay function. How would I be able to achieve this in the teensy arduino/c framework.
I want to run some gpio functions (raise a bunch of lines for time t) when I receive commands over serial, but when I perform these gpio tasks, I want to still be able to read serial data if available. Right now I have a delay function to raise the gpio line for the desired time and in that time any serial data is just stored in the buffer(or possibly lost) and only acted upon once im out of the delay function. How would I be able to achieve this in the teensy arduino/c framework.