Even though there is a tryfinally block in the example, terminating it (via thonny specifically) causes the board to lock up and need power cycling. Pressing the boot button to end the program ends everything cleanly. An exception (such as undervoltage) also ends cleanly.
Even though there is a
try
finally
block in the example, terminating it (via thonny specifically) causes the board to lock up and need power cycling. Pressing the boot button to end the program ends everything cleanly. An exception (such as undervoltage) also ends cleanly.