Skip to content

Latest commit

 

History

History

Public gallery of example Arduino sketches using the Python Agent

So far I have written and added the following sketches to the PublicGallery folder:

  • ArduinoCLI.ino example sketch
  • macFreeDiskSpace.ino sketch to monitor and blink an LED if your PC/Mac/Linux disk drive falls below a certain amount of free space
  • macPlayMusic.ino sketch to play any song in your music library when your Arduino sketch tells it to play it
  • macSpeechSynthesizer.ino sketch to make your Mac speak anything your Arduino tells it to
  • openWeatherMap.ino sketch to retrieve the city name, latitude, longitude, current conditions, temperature, feels like temperature, humidity, wind speed, and wind direction for any zip code.
  • datetime.ino sketch to retrieve the current date and time from Windows, Mac, and Linux hosts!
  • isMacAsleep.ino sketch to retrieve whether the host machine is asleep or not! Special thanks to reddit user u/NoBodyDroid for the idea!
  • power.ino sketch for Windows, Mac, and Linux to tell the host macine to go to sleep, reboot, or shutdown
  • pjlink.ino sketch for an example of invoking the PJLink command line tool.
  • hue.ino example sketch for controlling the lights in your home via the Hue Bridge using 'curl' commands.
  • fileIO.ino example sketch for creating, reading, writing, and deleting text files including support for random access insert and read line by number, get number of lines in a file, etc. Works on Windows, Mac, and Linux.