[Solved] 9 bit serial problem

So after a bit on tinkering with the hardwareserial libraries, I managed to resolved the issue I was seeing. :smiley: ;D

please see library files attach. If you wish to used it, you would need to overwrite the original files. I HAVE NOT tested everything in the library so if you wish to use it please BACKUP the original files BEFORE you overwrite them.

Serialx.begin() has 2 argurments: baud [required] and config[optional], where x is your serial port used

default if config is not entered is 8 bit 1 stop bit.

To use 9 bit serial use the 9 bit definitions declared in hardwareserial.h
e.g to use 9 bit serial+ 1 stopbit at 9600baud, you would use Serialx.begin(9600, SERIAL_9N1);

HardwareSerial9bit.zip (7.57 KB)