Collection of simple sketches I've written as I've learned how to use different components. Tested with Python 3.6.4
, pygame 1.9.4
, pyserial 3.4
and the Arduino Uno compatible RedBoard. If you're going to try to run these examples on your computer, be sure to check the COM port in the respective python script is correct!
I use pygame
to write simple interface to display what is being read from the Arduino. If you're unfamiliar with the package, I recommend this tutorial.
Code written with VSCode. Definitely a great choice, give it a try if you haven't! Hardware hookup schematics made with Fritzing.