Skip to content

Instantly share code, notes, and snippets.

View estranged42's full-sized avatar

Mark Fischer estranged42

View GitHub Profile
@estranged42
estranged42 / qtpy-piano.py
Created March 16, 2021 00:29
Basic Piezo buzzer with 6 notes on an Adafruit QT Py
# Uses a basic piezo buzzer to make tones: https://www.adafruit.com/product/160
# Adapted from https://learn.adafruit.com/using-piezo-buzzers-with-circuitpython-arduino/circuitpython
# QT Py can do capacitive touch sensing on 6 pins, so we can easily play 6 notes
# https://learn.adafruit.com/adafruit-qt-py/pinouts
import board
import simpleio
import touchio
# Define pin connected to piezo buzzer.
@estranged42
estranged42 / main.py
Created February 12, 2018 20:35
Problematic main.py that came with Adafruit Trinket M0
# Trinket IO demo
# Welcome to CircuitPython 2.0.0 :)
import board
from digitalio import DigitalInOut, Direction, Pull
from analogio import AnalogOut, AnalogIn
import touchio
from adafruit_hid.keyboard import Keyboard
from adafruit_hid.keycode import Keycode
import adafruit_dotstar as dotstar
@estranged42
estranged42 / keybase.md
Last active September 12, 2016 00:24
keybase.md

Keybase proof

I hereby claim:

  • I am estranged42 on github.
  • I am estranged (https://keybase.io/estranged) on keybase.
  • I have a public key ASCfG_6dGE2EFgYCFuO6qy6sW6yhMLchUjaKzjXwufnvZQo

To claim this, I am signing this object: