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 board | |
import displayio | |
import math | |
import time | |
# Set up the display | |
display = board.DISPLAY | |
# Create a blank displayio group | |
tilegroup = displayio.Group() |
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
# fireworks_sprites.py - show a bunch of fireworks | |
# 4 Jul 2022 - @todbot / Tod Kurt | |
import time, random | |
import board | |
import displayio | |
import rainbowio | |
import adafruit_imageload | |
fireworks_count = 5 | |
sprite_fname = "fireworks_spritesheet.bmp" |
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
# eyeballs_dual_gc9a01.py - dual display GC9A01 round TFT LCDs with creepy eyeball animation | |
# 17 May 2022 - @todbot / Tod Kurt | |
# | |
# requires recompiled CircuitPython with "#define CIRCUITPY_DISPLAY_LIMIT (2)" in "mpconfigboard.h" | |
# | |
import time, math, random | |
import board, busio | |
import displayio, terminalio | |
import gc9a01 |
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
# lilygo_esp32s2_imagedisplay.py | |
# 25 Jul 2021 - todbot / Tod Kurt | |
# SD card handling from: | |
# https://learn.adafruit.com/adafruit-micro-sd-breakout-board-card-tutorial/circuitpython | |
import busio | |
import sdcardio | |
import storage | |
import os | |
sd_spi = busio.SPI(clock=board.SD_CLK, MOSI=board.SD_MOSI, MISO=board.SD_MISO) |