Skip to content
Discussion options

You must be logged in to vote

For the definition of MICROPY_KBD_EXCEPTION you have to look into esp32/mpconfigport.h as well. And there is reads:
#define MICROPY_KBD_EXCEPTION (1)
https://github.com/pycom/pycom-micropython-sigfox/blob/a37510c092bcec00671c924accb97dcdfa2f4b5d/esp32/mpconfigport.h#L129

The code snippet works in standard MicroPython. Tested on a RP2 board.
Places to look for:
lib/mp_readline/readline.c, functions readline() and readline_process_char().
mods/machuart.c, function UARTRxCallback() and uart_rx_char()
lib/utils/pyexec.c, function pyexec_friendly_repl()
calls to mp_hal_set_interrupt_char(). mp_hal_set_interrupt_char(-1) disables keyboard interrupt.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by sotpotatis
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Other
Labels
None yet
2 participants