Download these files (Green 'Code' button, then download .zip), and save them somewhere seperate to your Clock design sketch that you've been working on (don't overwrite it or you will lose your UI design).
- You should already have Python installed. You can check by opening up a terminal and running
python -vorpython --version. If this doesn't work, try runningpython3 --version. The installed version should then be printed on the command line. - Now you need to check that you can run
pipfrom the command line.pipis Python's package manager. Follow these steps to ensure you can run pip from the command line. - Install the
pyseriallibrary. Runpip install pyserialorpython3 -m pip install pyserial - You should now be able to run your Python script!
cdto your working directory (or go to Finder/File Explorer and click 'Open in Terminal' or 'New terminal at folder') and then runpython send_days.pyorpython3 send_days.py