How to Solve NameError: name 'Timer' is not defined -- machine

Solution: Import the 'Timer' module

To Solve the error, add the following line to the top of your code.

from machine import Timer

 

For more information:
Python machine Timer