Home Bochs Emulator - Config & Build on Windows and OS X
Post
Cancel

Softwareserial H __exclusive__ Page

void setup() // Hardware serial for debugging Serial.begin(9600);

// Optional: increase receive buffer size (edit library file) softwareserial h

void loop() // Continuously read from software serial while (mySerial.available()) char c = mySerial.read(); Serial.print(c); // echo to hardware serial void setup() // Hardware serial for debugging Serial

// Software serial for GPS module mySerial.begin(9600); // blocking but short

// Send data via software serial (non-blocking friendly) if (Serial.available()) char out = Serial.read(); mySerial.write(out); // blocking but short