Hi Paul,
I was wondering if you ever considered or if it's possible to implement the different Serial formats that the Hardware Serial ports have on the USB stack? If you do loopback test with say "SERIAL_7E1" like such:
and send to the USB "-1234" i get "-±≤3¥" printed back which makes sense but it would be nice to print to the usb with these different formats to debug.
thanks,
duff
I was wondering if you ever considered or if it's possible to implement the different Serial formats that the Hardware Serial ports have on the USB stack? If you do loopback test with say "SERIAL_7E1" like such:
Code:
// LoopBack
void setup() {
Serial.begin(9600);
Serial1.begin(38400, SERIAL_7E1);
}
void loop() {
char incomingByte;
if (Serial.available() > 0) {
incomingByte = Serial.read();
Serial1.print(incomingByte);
}
if (Serial1.available() > 0) {
incomingByte = Serial1.read();
Serial.print(incomingByte);
}
}
and send to the USB "-1234" i get "-±≤3¥" printed back which makes sense but it would be nice to print to the usb with these different formats to debug.
thanks,
duff