Show minor edits - Show changes to markup
// software serial : TX = digital pin 2, RX = digital pin 3 SoftwareSerial portOne(2, 3);
// software serial : TX = digital pin 10, RX = digital pin 11 SoftwareSerial portOne(10,11);
Tests to see if a software serial buffer overflow has occurred. A software serial buffer can hold 64 bytes.
Tests to see if a software serial buffer overflow has occurred. Calling this function clears the overflow flag, meaning that subsequent calls will return false unless another byte of data has been received and discarded in the meantime.
The software serial buffer can hold 64 bytes.
(:source lang=arduino tabwidth=4:)
// software serial : TX = digital pin 2, RX = digital pin 3 SoftwareSerial portOne(2, 3);
void setup() {
// Start the hardware serial port Serial.begin(9600);
// Start software serial port portOne.begin(9600);
}
void loop() {
if (portOne.overflow()) {
Serial.println("SoftwareSerial overflow!");
} (:sourceend:)
Tests to see if a software serial buffer overflow has occurred.
Tests to see if a software serial buffer overflow has occurred. A software serial buffer can hold 64 bytes.
Tests to see if the software serial buffer overflow has occurred.
Tests to see if a software serial buffer overflow has occurred.
Tests to see if the software serial buffer overflow has occurred.
mySerial.overflow()
none
boolean