This file contains 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
# FruitBox Step Sequencer | |
# Circuit Playground Express | |
from adafruit_circuitplayground.express import cpx | |
import time | |
# Change this number to adjust touch sensitivity threshold, 0 is default | |
cpx.adjust_touch_threshold(600, ["touch_A1", "touch_A2", "touch_A3", "touch_A4", "touch_A5", | |
"touch_A6", "touch_A7"]) | |
bpm = 90 # quarter note beats per minute, change this to suit your tempo |
This file contains 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 pulseio | |
import board | |
import adafruit_irremote | |
from adafruit_circuitplayground.express import cpx | |
pulsein = pulseio.PulseIn(board.REMOTEIN, maxlen=120, idle_state=True) | |
decoder = adafruit_irremote.GenericDecode() | |
import time | |
# size must match what you are decoding! for NEC use 4 | |
received_code = bytearray(4) |
This file contains 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 array | |
import digitalio | |
import pulseio | |
import board | |
import adafruit_irremote | |
import time | |
# ON = bytearray(b'\xdf \xef\x10') | |
ONE=bytearray(b'\xff\x02\xf7\x08 ') # this is the one key on adafruit remote | |
# ONE=bytearray([0xFF, 0x02, 0xF7, 0x08 ]) |
This file contains 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
# IR reader | |
import board | |
import pulseio | |
import adafruit_irremote | |
IR_PIN = board.D10 # Pin connected to IR receiver on Feather M0 Express | |
# _____ | |
# | | | |
# |_____| |
This file contains 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
/* Use the FFT library with a Feather M0 Express and MAX9814 mic amplifier. | |
* Requires the Adafruit Zero FFT library | |
* | |
* The LEDs will map around the circle when frequencies between FREQ_MIN | |
* and FREQ_MAX are detected | |
*/ | |
#include <Adafruit_NeoPixel.h> | |
#include "Adafruit_ZeroFFT.h" |
This file contains 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
/* | |
LED VU meter for Arduino and Adafruit NeoPixel LEDs. | |
Hardware requirements: | |
- Most Arduino or Arduino-compatible boards (ATmega 328P or better). | |
- Adafruit Electret Microphone Amplifier (ID: 1063) | |
- Adafruit Flora RGB Smart Pixels (ID: 1260) | |
OR | |
- Adafruit NeoPixel Digital LED strip (ID: 1138) | |
- Optional: battery for portable use (else power through USB or adapter) |
This file contains 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
/* Use the FFT library with a Feather M0 Express and mic w amplifier. | |
* Requires the Adafruit Zero FFT library | |
* | |
* The LEDs will map around the circle when frequencies between FREQ_MIN | |
* and FREQ_MAX are detected | |
*/ | |
#include <Adafruit_NeoPixel.h> | |
#include "Adafruit_ZeroFFT.h" |
This file contains 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
/* Use the FFT library with a Feather M0 Express and mic w amplifier. | |
* Requires the Adafruit Zero FFT library | |
* | |
* The LEDs will map around the circle when frequencies between FREQ_MIN | |
* and FREQ_MAX are detected | |
*/ | |
#include <Adafruit_NeoPixel.h> | |
#include "Adafruit_ZeroFFT.h" |
This file contains 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
# Rubber Ducky | |
# http://www.math.harvard.edu/computing/macintro/keys.html | |
# use command-H to close a bunch of windows | |
# use command-Shift to launch search finder thingy | |
# type 'terminal' is there a way to launch it hidden? | |
# command-N for new terminal window in case another is up | |
# type whatever the heck we want in the terminal | |
# e.g., use curl to download an image file or script | |
# curl -o ~/Desktop/image.png https://www.python.org/static/apple-touch-icon-144x144-precomposed.png |
This file contains 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
# Rubber Ducky | |
# http://www.math.harvard.edu/computing/macintro/keys.html | |
# use command-H to close a bunch of windows | |
# use command-Shift to launch search finder thingy | |
# type 'terminal' is there a way to launch it hidden? | |
# command-N for new terminal window in case another is up | |
# type whatever the heck we want in the terminal | |
# e.g., use curl to download an image file or script | |
# curl -o ~/Desktop/image.png https://www.python.org/static/apple-touch-icon-144x144-precomposed.png |
OlderNewer