Clone this starter pack and dive into coding on the excellent Adafruit PyPortal!
-
Connect your
PyPortal
device via USB. Be sure to use a good quality USB cable! -
In a blank
/Volumes/CIRCUITPY
directory, clone this repository to the root of/Volumes/CIRCUITPY
. Make sure to remove the.git
directory:cd /Volumes/CIRCUITPY git clone git@github.com:droxey/pyportalpack.git . && rm -rf .git
-
Initialize your own Git repository in the directory:
git init
-
Create a checkpoint by adding and committing the starter code:
git add . git commit -m "[add] initial starter pack"
-
Create a file named
secrets.py
that contains the following code:secrets = { 'ssid': 'CHANGE ME', # Keep the two '' quotes around the name 'password': 'CHANGE ME', # Keep the two '' quotes around password 'timezone': "America/Los_Angeles", # http://worldtimeapi.org/timezones 'aio_username': 'YOUR_ADAFRUIT_ACCOUNT_USERNAME', 'aio_key': 'YOUR_ADAFRUITIO_KEY', }
-
Update your
ssid
,password
,timezone
,aio_username
, andaio_key
with your relevant values. You'll need at leastssid
andpassword
filled into connect the PyPortal device to your Wifi. -
Time to start developing! You can find more documentation in the
/docs
directory in this repository.