# 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
# SPDX-FileCopyrightText: 2024 anecdata | |
# | |
# SPDX-License-Identifier: MIT | |
# Adafruit CircuitPython 9.0.0-beta.2-21-gc91b20fd96 on 2024-03-05; Adafruit Feather ESP32-S3 TFT with ESP32S3 | |
# https://github.com/adafruit/circuitpython/pull/8954 | |
# https://github.com/adafruit/Adafruit_CircuitPython_Wiznet5k/tree/core-compatible-socket-type-numbers | |
import time | |
import os |
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
import sys | |
import board | |
import displayio | |
import terminalio | |
display = board.DISPLAY # or equivalent external display library | |
splash = displayio.Group() | |
fontx, fonty = terminalio.FONT.get_bounding_box() |
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
#3 no gather, and add a task later | |
import board | |
import digitalio | |
import asyncio | |
import adafruit_ticks | |
led_pins = [board.A0, board.A1, board.A2, board.A3] | |
extra_led_pin = board.D24 | |
async def do_led(pin): |
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
# 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
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
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 |