-
-
Notifications
You must be signed in to change notification settings - Fork 7k
New Serial.begin(baud, config); #109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Adding advanced begin (); with the ability to specify the length of bits, parity, stop bits.
Adding advanced begin (); with the ability to specify the length of bits, parity, stop bits.
Adding advanced begin (); with the ability to specify the length of bits, parity, stop bits.
Adding advanced begin (); with the ability to specify the length of bits, parity, stop bits.
Adding advanced begin (); with the ability to specify the length of bits, parity, stop bits.
New Serial.begin(baud, config);
New Serial.begin(baud, config);
New Serial.begin(baud, config);
Serial.begin() parameter to set data bits, parity, stop bits.
I merged this and also made a couple of tweaks: The first tweak was renaming the constants to better match the Arduino style. The other tweak involved modifying the way that the bits are actually set. It's possible I got it wrong, so please look it over and try it out. In particular, I'm now only setting the high (0x80) bit on the ATmega8 (where you need it to write to UCSRC instead of UBBRH) but not on the other processors, where it selects a reserved value for the UART mode. Also, I'm no longer bitwise-on the config parameter with the existing UCSRC register value since we want to actually set all of the options in the register. Anyone see any problems or have suggestions for further changes? |
All right. Very good solution. |
Serial.begin() parameter to set data bits, parity, stop bits.
Add LEDs blinking into base MySensor class without any library dependency
Adding advanced begin (baud, config). The function sets the number of bits, parity, stop bits.