4
votes

i have a Arduino which is connected to my PC. I'm sending some hex values over Serial port (with Python/Spyder IDE) to it to control the GPIO pins. Is there a way to upload the sketch to the Arduino without using the IDE. I don't want to write the sketch in python. Just want to upload a existing sketch via a Python script.

Thanks for your help!

1

1 Answers

1
votes

You can build and upload Arduino sketches with python, there are two worthwhile tools: build_arduino.py and arduino-sketch.

Their pages provide detailed installation and usage instructions.