Skip to content

Instantly share code, notes, and snippets.

View Gadgetoid's full-sized avatar
🚼
+1 Baby

Philip Howard Gadgetoid

🚼
+1 Baby
View GitHub Profile
@Gadgetoid
Gadgetoid / midi-sequencer.orca
Created January 21, 2019 21:36
Simple non-regular step chord sequencer in ORCA.
.........................................................................
.U.......................................................................
....W.U..................................................................
.S.......................................................................
.........................................................................
.........................................................................
.........................................................................
.....NYNYNYNYNYNYNYNYNYNYNYNYNYNYNYNYNYN11G0.............................
......Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.01G1.............................
.S.......J...........J...........J...J.J..0....................2V1.......
@Gadgetoid
Gadgetoid / 10-twinkie.rules
Created February 6, 2019 18:59
Script to build Sigrok and PulseView on the Raspberry Pi with Twinkie USB Power-Delivery sniffer support
SUBSYSTEMS=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="500a", MODE="0660", GROUP="dialout"
@Gadgetoid
Gadgetoid / Makefile
Last active August 25, 2023 01:50
Pi 400 KB
CFLAGS_ALL=-I../libusbgx/build/include -I../bcm2835-1.68/build/include -L../bcm2835-1.68/build/lib -I../lua-5.4.0/src -L../libusbgx/build/lib -L../libserialport/build/lib -L../lua-5.4.0/src -lpng -lz -lpthread -llua -lm -lbcm2835 -ldl
pi400: CFLAGS+=-static $(CFLAGS_ALL) -lusbgx -lconfig -DPI400_USB
pi400: pi400.c gadget-hid.c
$(CC) $^ $(CFLAGS) -o $@
pi400test: CFLAGS+=-static $(CFLAGS_ALL) -lusbgx -lconfig
pi400test: pi400.c gadget-hid.c
$(CC) $^ $(CFLAGS) -o $@
@Gadgetoid
Gadgetoid / README.md
Last active May 8, 2024 20:12
Raspberry Pi 5 - All channels on pwm0
@Gadgetoid
Gadgetoid / unicorn_pack_pio_dma.py
Last active March 26, 2024 09:49
MicroPython PIO DMA for Pimoroni Unicorn Pack
import rp2
import time
import uctypes
from array import array
from machine import Pin
PIN_LED_DATA = 8
PIN_LED_CLOCK = 9
PIN_LED_LATCH = 10
PIN_LED_BLANK = 11