CircuitPython
To easily connect AirLift hardware to Adafruit IO using CircuitPython, we've written an Adafruit IO
CircuitPython module (https://adafru.it/EFZ) to provide simple interaction with the Adafruit IO HTTP and
MQTT APIs.
Install CircuitPython
Some of the CircuitPython compatible boards come with CircuitPython installed. Others are
CircuitPython-
ready
, but need to have it installed. As well, you may want to update the version of CircuitPython already
installed on your board. The steps are the same for installing and updating.
To install (or update) your CircuitPython board, follow this page and come back here when you've
successfully installed (or updated) CircuitPython. (https://adafru.it/Amd)
Internet Connect!
Once you have CircuitPython setup and libraries installed, you can get your project connected to the
Internet.
To do this, you'll be editing CircuitPython code and will need an editor. We suggest using Mu, a
lightweight text editor with support for CircuitPython built-in.
Click the button below to get instructions on how to install the Mu Editor.
https://adafru.it/ANO
If you have not yet connected your board to the Internet, follow one of the guides below and come back
when you've successfully connected to the internet:
If you have an AirLift All-in-One board (like the Metro M4 WiFi or PyPortal), follow this page to
connect to the internet (https://adafru.it/Eao).
If you have an externally connected AirLift , follow this page to connect to the
internet (https://adafru.it/EF-).
Secrets File Setup for Adafruit IO
While you created a secrets file and connected to the Internet in the previous step, you'll need to edit the
secrets file to include your Adafruit IO Username and Secret Key.
Add the following code to your secrets.py file, replacing _your_adafruit_io_username with your Adafruit IO
username.
Then, replace _your_big_huge_super_long_aio_key_ with your Adafruit IO Active Key.