Code: Select all
sys.stdin.read(1)
Code: Select all
sys.stdin.read(1)
Currently, that behaviour is determined by code in the stmhal port wihch is shared by the teensy port (so stmhal and teensy both behave the same).Roberthh wrote:Hello @dhylands, thank you for the update.
I was able to update my local copy of the repository, compiled & load it, and it seems to work.
I just compared the Ctrl-C handling with sys.stdin.read(1) on the various port, and all behave different.
The behavior I like most is that of the ESP8266 port, in that it interrupts your code, if no exception handler is set, and triggers that handler, if set. and all of that on the first Ctrl-C.
Best Regards, Robert
Code: Select all
$ git clone https://github.com/dhylands/micropython.git
$ cd micropython
$ git checkout teensy-rtc
$ cd teensy
$ make BOARD=TEENSY_3.1
$ make BOARD=TEENSY_3.5
$ make BOARD=TEENSY_3.6