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
# 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
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", ",", ".", "/", "\\", "'",
"[", "]", ";"
@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

Multiple screens is not a string requirement, but it will make things MUCH easier. You can manage the stream and (try to) keep anything private on the screen that is not shared as a source in OBS.

I use OBS and hooked it up with restream.io. I don't recall the exact process but it was fairly straightforward after signing up for restream.io. Youtube seems to keep them recorded automatically, I don't think I had to do anything extra.

Restream.io can in turn connect your twitch, youtube and other platform accounts. All of them will go live together (if everything works)

OBS "Scenes" allow you to build up other things on your view like the chat box, other camera feeds, and any static elements you want. You can setup multiple scenes and switch between them if you want.

I used the discord stream kit chat overlay from here: https://streamkit.discord.com/overlay there are a few configurable options. But not overall size. I ended up writing a little javascript bookmarklet to manipulate the size: