How do I add a destructor to an object that doesn’t have one?
I am playing about with MicroPython on a Raspberry Pi Pico board and the Timer
class does not appear to have a destructor, so in order to stop it I need to call its deinit()
method. If I exit the program then the timer continues, which I don’t like.
How do I add a constructor to an object that doesn’t have one?
I am playing about with MicroPython on a Raspberry Pi Pico board and the Timer
class does not appear to have a destructor, so in order to stop it I need to call its deinit()
method. If I exit the program then the timer continues, which I don’t like.