Closed
Description
When I do a Serial.swap() in a loop, many characters come out messsed up.
If I slow the loop down by putting a delay of perhaps 100, it then works, still some characters are bad, any ideas how to stop this?
I will be using the swap in a program that needs lots of speed !
Thanks
On a Nodemcu.
extern "C" {
include <user_interface.h>
}
int i=0;
void setup()
{
Serial.begin(9600);
}
void loop()
{
Serial.print("Loop No: ");
Serial.println(i);
// delay(100);
Serial.swap();
i++;
}