settings.toml is a separate text file from your CircuitPython code.py to contain credentials, such as WiFi name & password and Adafruit IO credentials.
Open a text editor and put copy the text below and paste it in. Change the fields to correspond to your WiFi and Adafruit IO account. Save as settings.toml.
# This file is where you keep private settings, passwords, and tokens! # If you put them in the code you risk committing that info or sharing it CIRCUITPY_WIFI_SSID="your-wifi-ssid" CIRCUITPY_WIFI_PASSWORD="your-wifi-password" ADAFRUIT_AIO_USERNAME="my_username" ADAFRUIT_AIO_KEY="my_key" timezone="America/New_York" # http://worldtimeapi.org/timezones
Page last edited March 25, 2025
Text editor powered by tinymce.