I’m trying to disable the USB_VCP keyboard interrupt (in the docs it says to give USB_VCP.setinterrupt(-1) to disable), but I don’t believe it is properly disabled.
I’m trying to send integers over USB and can do so just fine, except for the integer 3 (which corresponds with CTRL+C and is the default setting of setinterrupt). Sending a 3 will interrupt any python code that is running.
For now, I can get around this by sending the integers as strings and converting them back later, but I’d like to be able to send raw integers as well.
Am I disabling the keyboard interrupt feature properly, by using the following?
brd = pyb.USB_VCP() brd.setinterrupt(-1)