-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
stm32: flow= parameter in pyb.UART().init() #1981
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
Comments
For consistency the use of This needs a few minor changes in @ pyb_uart_print
@ mp_obj_t pyb_uart_init_helper()
|
@dpgeorge Would you consider including this too so that |
Have you seen #2602? It may be a while before this gets addressed. |
@rolandvs comming back to this issue: I'm happy for it to print the |
About |
Also change the order of printing of flow so it is after stop (so bits, parity, stop are one after the other), and reduce code size by using mp_print_str instead of mp_printf where possible. See issue #1981.
Ok! So in 9262f54 I made it so that the flow setting is always printed. |
This fixes the bug that bitmap changes do not cause screen updates and optimizes the refresh when the bitmap is simply shown on the screen. If the bitmap is used in tiles, then changing it will cause all TileGrids using it to do a full refresh. Fixes micropython#1981
When initializing an UART with
u3 = pyb.UART(3, 57600)
the default settings are set to no flow control (flow=0). It would be 'better' whenNone
would be used instead of0
. Furthermore when usingu3
at REPL the current initialization is shown, butflow
is omitted if0
.I would like to see
flow=None
orflow=RTS
in all cases. Furthermore any value can be entered setting "stray" bits so it would be 'better' to mask off all bits except for RTS and CTS.I have changed these in
stmhal\uart.c
and added to my fork, but it seems to me these could be integrated in the mpy code base.If I only knew how to git that....
The text was updated successfully, but these errors were encountered: