Python programs to terst with Arduino, using the Lib pyFirmata.
To use, firstgo to Arduino page and install the Arduino Agent.
The Arduino IDE is a good idea too, since you can use in original language, but you can use the web IDE
create the Virtual Environment as usual
python -m venv venv
and intal the lib pyFirmata
pip install pyfirmata
and joy
https://realpython.com/arduino-python/
A blink led with python with a for
Use button to capture digital inputs write in the terminal when click.
same as above but blink the led
read the potentiometer and print on terminal the value
same as above but control the interval between 2 leds(the scketch bellow shows just one led)