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 time | |
import board | |
import busio | |
import usb_midi | |
import adafruit_midi | |
from adafruit_midi.note_off import NoteOff | |
from adafruit_midi.note_on import NoteOn | |
from adafruit_bus_device.i2c_device import I2CDevice | |
import adafruit_dotstar |
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 time | |
import board | |
import busio | |
import usb_hid | |
from adafruit_bus_device.i2c_device import I2CDevice | |
import adafruit_dotstar | |
from adafruit_hid.keyboard import Keyboard | |
from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS |
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 time | |
import board | |
import usb_midi | |
import adafruit_midi | |
from analogio import AnalogIn | |
from adafruit_midi.control_change import ControlChange | |
# MIDI CC knob controller example for Raspberry Pi Pico |
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
# This example lights the RGB LED on Tiny 2040 to a different colour | |
# for each note in the octave. Listens on all MIDI channels by default. | |
import board | |
import adafruit_rgbled | |
import usb_midi | |
import adafruit_midi | |
from adafruit_midi.note_on import NoteOn |
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
# CircuitPython USB MIDI to serial MIDI converter for Raspberry Pi Pico (RP2040). | |
# IMPORTANT! Should *only be used for MIDI in*, i.e. from USB devices to hardware | |
# MIDI synths, and *not* in the opposite direction. Doing so could risk damage to | |
# the microcontroller, your computer, or both. | |
# Wire a 10Ω resistor from the Tx pin on the Raspberry Pi Pico or other | |
# RP2040 board to the 3.5mm stereo jack tip, a 33Ω resistor from the 3v3 pin on | |
# the Raspberry Pi Pico to the 3.5mm stereo jack ring, and the ground pin on the | |
# Raspberry Pi Pico to the 3.5mm stereo jack sleeve. |
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
SSID = "" | |
PSK = "" |
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
# Pop this on another machine, and run with: | |
# python3 github-graph-api.py --host 0.0.0.0 | |
# | |
# Take note of this machine's IP address, as you'll | |
# need to add it in the GU code. | |
import requests | |
from bs4 import BeautifulSoup, SoupStrainer | |
from flask import Flask, jsonify, make_response |
OlderNewer