Skip to content

Instantly share code, notes, and snippets.

Avatar

Mark Fischer estranged42

View GitHub Profile
@estranged42
estranged42 / qtpy-piano.py
Created Mar 16, 2021
Basic Piezo buzzer with 6 notes on an Adafruit QT Py
View qtpy-piano.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 Feb 12, 2018
Problematic main.py that came with Adafruit Trinket M0
View main.py
# 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
View 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: