tele_player wrote:The modification for 7 bits is extremely simple, have you looked at SoftwareSerial.cpp?
Note: rxRead() might trick you, since it is written using 0x80 and right shift. I'd change it to 0x01 and left shift, so it can handle 7-bit correctly simply by changing the loop limit.
I'd mod software serial to have a method for setting a variable for bits., rather than constant 8.
These mods would take a minute to do. It might take a few minutes, or an hour, to figure out. Hint: there are two loops with 8 hard-coded, and one place where 0x80 is OR'ed into the received byte.
Dear tele_player,
thanks for your reply and the guiding. For my needs I will not use receiving data at all, so, in my case it is better to remove all rx parts in the software serial routine.
With the above in mind, can you modify the software serial ( .cpp & .h ) to meet my need?
I asking this because I am not sure that I can do it by myself even if it simple as you told.
In all cases thanks for your helping hand.
Best Regards,
Mike Kranidis