PYTHON FOR ARDUINO
IN THIS TOPIC WE WILL DISCUSS ONLY PYTHON FOR ARDUINO (UNO, MEGA and ETC.)
First you need to install Python 3 on your computer.
Then install pySerial through PIP.
Finally, enter this code to test:
import serial
port = serial.Serial('com4', 9600)
port.write(b'5')
And then check your Arduino for lighting TX/RX lights. If they are lighting it means that everything is fine!
bloodyfellow:
UKHelliBob, I will publish codes of various software every Saturday.
The point @UKHeliBob was making is that it is not possible to run the Python interpreter on an Arduino. Arduinos are programmed with C++.
How about taking 10 or 20 lines to explain exactly why you started this Thread and what it is you hope it will achieve. At the moment it is not far short of "bloody nonsense"
CircuitPython will run on an Arduino Zero.
(Also on a variety of other ARM and ESP8266 boards that are "arduino-like" even if they're not official Arduinos.)