Fail to complie RPI_PICO with MICROPY_KBD_EXCEPTION off #18348
-
|
Hello! This is the output I see: The same works just fine when using What causes the problem? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Disabling keyboard interrupt at runtime may be sufficient for you. That's done by Re-seting Ctrl-C as interrupt can be done with Edit: You cannot test micropython.kbd_int(-1) ni RELP, because REPL re-enables keyboard interrupt for each prompt. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks! This solves the problem for the moment. It would be good to fix it when using MICROPY_KBD_EXCEPTION macro. |
Beta Was this translation helpful? Give feedback.
Disabling keyboard interrupt at runtime may be sufficient for you. That's done by
Re-seting Ctrl-C as interrupt can be done with
micropython.kbd_intr(3)A transparent IO with stdin ot stdout can be done with
sys.stdin.buffer.read()andsys.stdout.buffer.write().Edit: You cannot test micropython.kbd_int(-1) ni RELP, because REPL re-enables keyboard interrupt for each prompt.