#include SoftwareSerial s1(5,6);
void setup { s1.begin(9600); s1.setTimeout(50); //sets the timeout of parseint() to 50ms
}
#include <SoftwareSerial>
SoftwareSerial s1(5,6);
void setup {
s1.begin(9600);
s1.setTimeout(50); //sets the timeout of parseint() to 50ms
}
Please note that lowering the timeout too much can cause errors, i would not go below 10.