# SPDX-FileCopyrightText: 2023 anecdata
#
# SPDX-License-Identifier: MIT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: 2023 anecdata | |
# | |
# SPDX-License-Identifier: Unlicense | |
# terminalio.FONT.bitmap is 2-color | |
# changing a palette color changes every use of that palette | |
# but there's got to be a better way... | |
import time | |
import random |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: 2023 anecdata | |
# | |
# SPDX-License-Identifier: Unlicense | |
import time | |
import board | |
import busio | |
from displayio import Bitmap | |
import adafruit_is31fl3741 | |
from adafruit_is31fl3741.adafruit_rgbmatrixqt import Adafruit_RGBMatrixQT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: 2023 anecdata | |
# | |
# SPDX-License-Identifier: MIT | |
import time, gc, random, board, busio, digitalio | |
from secrets import secrets | |
# for PicoW server: | |
import wifi, socketpool, ipaddress | |
# for WIZnet client: | |
from adafruit_wiznet5k.adafruit_wiznet5k import WIZNET5K |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: 2022 Liz Clark for Adafruit Industries | |
# | |
# SPDX-License-Identifier: MIT | |
import os | |
import time | |
import ipaddress | |
import wifi | |
import socketpool | |
import busio |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import board | |
import busio | |
import digitalio | |
import time | |
from adafruit_wiznet5k.adafruit_wiznet5k import WIZNET5K | |
import adafruit_wiznet5k.adafruit_wiznet5k_socket as socket | |
import adafruit_wiznet5k.adafruit_wiznet5k | |
import adafruit_requests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: 2023 anecdata | |
# | |
# SPDX-License-Identifier: MIT | |
import time | |
import traceback | |
import asyncio | |
import board | |
import digitalio | |
import wifi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, time, wifi, socketpool | |
from secrets import secrets | |
SLEEP = 1 | |
pool = socketpool.SocketPool(wifi.radio) | |
def connect(): | |
try: | |
wifi.radio.connect(secrets['ssid'], secrets['password']) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import board | |
import busio | |
import digitalio | |
import time | |
import adafruit_wiznet5k.adafruit_wiznet5k | |
from adafruit_wiznet5k.adafruit_wiznet5k import WIZNET5K | |
import adafruit_wiznet5k.adafruit_wiznet5k_socket as wiznet5k_socket |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import machine | |
import network | |
import urequests as requests | |
TEXT_URL = "http://wifitest.adafruit.com/testwifi/index.html" | |
wlan = network.WLAN(network.STA_IF) | |
wlan.active(True) | |
wlan.connect("ssid", "passw0rd") |