Skip to content

Instantly share code, notes, and snippets.

# SPDX-FileCopyrightText: 2023 Jeff Epler for Adafruit Industries
#
# SPDX-License-Identifier: MIT
import traceback
import board
from adafruit_editor import editor, picker
from adafruit_featherwing import tft_featherwing_35
import terminalio
@FoamyGuy
FoamyGuy / download_ondiskbitmap_example.py
Created January 22, 2024 18:41
Download and display a bmp file
import ssl
import wifi
import socketpool
from displayio import Group, OnDiskBitmap, TileGrid
import adafruit_requests as requests
import board
import storage
import sdcardio
import os
import board
from adafruit_dotstar import DotStar
import time
import random
# XMorse Code
"""
RGB LEDs blinking
short blinks will be red
from displayio import Group
from adafruit_display_text import label
from adafruit_displayio_layout.layouts.grid_layout import GridLayout
from adafruit_bitmap_font import bitmap_font
ASCII_CHARS = (
"`", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "-", "=",
"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "",
"P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", ",", ".", "/", "\\", "'",
"[", "]", ";"
# SPDX-FileCopyrightText: 2023 DJDevon3
# SPDX-License-Identifier: MIT
# ESP32-S3 Feather Weather MQTT Touchscreen
# Coded for Circuit Python 8.2.x
import traceback
import time
import board
import displayio
import terminalio
@FoamyGuy
FoamyGuy / outlined_label_tests.py
Created July 8, 2023 15:28
OutlinedLabel Early Experimends
import time
import board
import bitmaptools
import terminalio
from adafruit_display_text import bitmap_label, outlined_label
import displayio
from adafruit_bitmap_font import bitmap_font
main_group = displayio.Group()
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>SizeTest</title>
</head>
<body>
<p>Duis at consectetur lorem donec massa sapien faucibus. Eu facilisis sed odio morbi quis commodo odio. Massa tincidunt dui ut ornare lectus sit amet est. Urna nunc id cursus metus aliquam eleifend mi. At imperdiet dui accumsan sit amet. Enim praesent elementum facilisis leo. Euismod lacinia at quis risus sed vulputate. Amet dictum sit amet justo donec enim diam vulputate ut. Pulvinar sapien et ligula ullamcorper malesuada proin libero. Mauris ultrices eros in cursus turpis massa. Ultricies mi quis hendrerit dolor magna. Aliquam faucibus purus in massa tempor nec feugiat nisl. Id neque aliquam vestibulum morbi blandit cursus risus at. Porttitor eget dolor morbi non arcu risus. Elit duis tristique sollicitudin nibh sit amet. Commodo viverra maecenas accumsan lacus vel facilisis volutpat est. Vitae et leo duis ut.</p>
<p>Duis at consectetur lorem donec massa sapien faucibus. Eu facilisis sed odio morbi qui

CircuitPython ESP32-S3 HackTablet Give Away

hack_tablets

Exciting things are ahead for CircuitPython, some work on the cutting edge of the ESP32-S3 port of CircuitPython is adding support for the S3s built-in LCD periphrial to display graphics with displayio APIs.

This functionality is being tested initially on some Hack Tablets made from discontinued corporate meeting room control panels and ESP32-S3 Dev Kit N8R8 devices. Thank you to Kmatch (Kevin Matocha) for providing the tablets for the giveaway, and doing the initial work to add support for them to the CircuitPython core.

There are five (5) extra of these Hack Tablet devices that will be made available to other members of the community in this give away.

import time
import busio
import board
import adafruit_focaltouch
import displayio
import dotclockdisplay
import framebufferio
from rainbowio import colorwheel
import adafruit_imageload
import vectorio
import displayio
import time
from adafruit_featherwing import tft_featherwing_35
from vectorio_helpers import outlined_rectangle
# seems to help the touchscreen not get stuck with chip not found
time.sleep(3)
# display and touchscreen initialization
displayio.release_displays()