I tried importing pyfirmata module and it does not recognise it. This is th error i get when hovering over it: "Import "pyfirmata" could not be resolved Pylance(reportMissingImports)" This is the code:
from pyfirmata import Arduino, util
import time
board = Arduino("COM5")
# print(board.get_firmata_version())
for x in range(10):
board.digital[13].write(1)
time.sleep(0.2)
board.digital[13].write(0)
time.sleep(0.5)
I tried reinstalling the module, changing the com, running it with the board plugged and unplugged.