This file contains hidden or 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 time | |
import board | |
import busio | |
import wifi | |
import adafruit_is31fl3741 | |
from adafruit_is31fl3741.adafruit_rgbmatrixqt import Adafruit_RGBMatrixQT | |
QUEUELEN = 128 # ESP32-S2 (ESP32-S3 can be much longer) |
This file contains hidden or 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 time | |
import wifi | |
QUEUELEN = 128 # ESP32-S2 (ESP32-S3 can be much longer) | |
NS_PER_CH = 5_000_000_000 # nanoseconds per channel | |
def monitor_ambient(channel, duration): | |
report = {} | |
monitor = wifi.Monitor() |
This file contains hidden or 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 discotool | |
import subprocess | |
devicesList = discotool.get_identified_devices(drive_info=True) | |
for device in devicesList: | |
if device.repl is None: continue | |
commands = [ | |
# open a new Terminal tab and connect to the device | |
["osascript", "-e", 'tell application "Terminal" to activate',], | |
["osascript", "-e", 'tell application "System Events" to tell process "Terminal" to keystroke "t" using command down',], |
This file contains hidden or 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 busio | |
import digitalio | |
import time | |
from adafruit_wiznet5k.adafruit_wiznet5k import WIZNET5K | |
import adafruit_wiznet5k.adafruit_wiznet5k_socket as socket | |
import adafruit_requests as requests | |
SPI0_SCK = board.GP18 | |
SPI0_TX = board.GP19 |
This file contains hidden or 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 time | |
import board | |
import supervisor | |
import displayio | |
import adafruit_displayio_sh1107 | |
from adafruit_lc709203f import LC709203F, PackSize | |
print("LC709203F Battery Fuel Gauge") |
This file contains hidden or 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 | |
from digitalio import DigitalInOut, Direction | |
from adafruit_wiznet5k.adafruit_wiznet5k import WIZNET5K | |
import adafruit_wiznet5k.adafruit_wiznet5k_socket as wiznet5k_socket | |
from adafruit_esp32spi import adafruit_esp32spi | |
import adafruit_esp32spi.adafruit_esp32spi_socket as esp_socket | |
import wifi | |
import socketpool | |
import ssl | |
import adafruit_requests |
This file contains hidden or 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 gc | |
import time | |
import board | |
import digitalio | |
import supervisor | |
import random | |
import wifi | |
import espidf | |
import ipaddress |
This file contains hidden or 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 gc | |
import time | |
import board | |
import digitalio | |
import supervisor | |
import ipaddress | |
import wifi | |
import socketpool | |
import ssl |
This file contains hidden or 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 board | |
import busio | |
import microcontroller | |
import supervisor | |
import os | |
import gc | |
import time | |
import random | |
import rtc |
This file contains hidden or 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() |