Skip to content

Instantly share code, notes, and snippets.

Avatar

Andrew Kleindolph extrasleepy

View GitHub Profile
View neopixel_volume_vert.py
import array
import math
import board
import audiobusio
import time
from adafruit_featherwing import neopixel_featherwing
neopixel = neopixel_featherwing.NeoPixelFeatherWing()
# Remove DC bias before computing RMS.
View basic_pixel_volume.py
import array
import math
import board
import audiobusio
import time
from adafruit_featherwing import neopixel_featherwing
neopixel = neopixel_featherwing.NeoPixelFeatherWing()
# Remove DC bias before computing RMS.
View neopixel_temp.py
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT
import board
import adafruit_ahtx0
import time
from math import sqrt, cos, sin, radians
from adafruit_featherwing import neopixel_featherwing
neopixel = neopixel_featherwing.NeoPixelFeatherWing()
View clock_matrix.py
import busio
import adafruit_pcf8523
import time
import board
import adafruit_framebuf
# Import the HT16K33 LED matrix module.
from adafruit_ht16k33 import matrix
# Create the I2C interface.
i2c = busio.I2C(board.SCL, board.SDA)
View oled_rtc.py
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: Unlicense
#Based on code by Author: Mark Roberts (mdroberts1243) from Adafruit code
#Adapted in July 2021 by Andrew Kleindolph
import board
import time
import displayio
import terminalio
import adafruit_ahtx0
View feather_matrixLED.py
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT
# Basic example of clearing and drawing a pixel on a LED matrix display.
# This example and library is meant to work with Adafruit CircuitPython API.
# Author: Tony DiCola
# License: Public Domain
# Import all board pins.
import time
View feather_matrix.py
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT
# Basic example of using FrameBuffer to create and scroll text on the matrix.
# Requires: adafruit_framebuf
import time
import board
import busio
View feather_mic.py
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
#
# SPDX-License-Identifier: Unlicense
"""
Author: Mark Roberts (mdroberts1243) from Adafruit code
This test will initialize the display using displayio and draw a solid white
background, a smaller black rectangle, miscellaneous stuff and some white text.
"""
View temp_example.py
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
# SPDX-License-Identifier: Unlicense
#Based on code by Author: Mark Roberts (mdroberts1243) from Adafruit code
#Adapted in July 2021 by Andrew Kleindolph
import board
import time
import displayio
import terminalio
import adafruit_ahtx0