Skip to content

Instantly share code, notes, and snippets.

@codepope
codepope / rgbkeypadcp.py
Created February 15, 2021 21:08
A class (and example) for the Pimoroni Pico RGB Keypad and CircuitPython
import board
import digitalio
import busio
import random
import time
class PicoRGBkeypad:
WIDTH=4
HEIGHT=4
NUM_PAD=WIDTH*HEIGHT
@andyleer
andyleer / code.py
Last active July 2, 2025 20:08 — forked from sandyjmacdonald/code.py
RGB MIDI controller example for Pimoroni RGB Keypad for Raspberry Pi Pico
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
@sandyjmacdonald
sandyjmacdonald / code.py
Last active July 2, 2025 20:02
MIDI CC knob controller example for Raspberry Pi Pico
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
@sandyjmacdonald
sandyjmacdonald / code.py
Created January 21, 2021 22:27
RGB MIDI controller example for Pimoroni RGB Keypad for Raspberry Pi Pico
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
@btgoodwin
btgoodwin / fcpxml_parse
Last active December 29, 2024 17:24
Final Cut Pro X FCPXML Parser
#!/usr/bin/python
'''
Author: Thomas Goodwin
Company: Geon Technologies, LLC, 2014
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.