# SPDX-FileCopyrightText: 2023 anecdata
#
# SPDX-License-Identifier: MIT
This file contains 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 random | |
import board | |
import wifi | |
import socketpool | |
import ssl | |
import neopixel | |
import asyncio | |
import adafruit_requests | |
# Choose your own URL adventure... |
This file contains 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 struct | |
import time | |
import board | |
import busio | |
import digitalio | |
try: | |
import canio | |
NATIVE = True | |
except ImportError: | |
NATIVE = False |
This file contains 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 microcontroller | |
import sys | |
mode = {"0": microcontroller.RunMode.NORMAL, | |
"1": microcontroller.RunMode.SAFE_MODE, | |
"2": microcontroller.RunMode.UF2, |
This file contains 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 supervisor | |
import microcontroller | |
import os | |
import sys |
This file contains 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 supervisor | |
import os | |
import rtc | |
import espnow |
This file contains 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 json | |
import microcontroller | |
import supervisor | |
from ⚙️ import * |
This file contains 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 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 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 |