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 / RetroPie-Pico8-Splore.md
Last active July 30, 2024 21:19
Instructions for integrating Pico8 and Splore into RetroPie

Just install vanilla Raspberry Pi OS for your Pi 5, and install RetroPie using retropie-setup

install lr-retro8 using RetroPie-Setup (easy way to get a Pico-8 menu option we can modify to our own ends)

Download the Rasberry Pi distro of pico8 and copy the unzipped pico-8 dir to /opt/retropie/ports/

maybe sudo chmod -R 755 /opt/retropie/ports/pico-8/

touch ~/RetroPie/roms/pico8/Splore.p8, launching this dummy cart will launch splore. IDK what zzzsplore.p8 is but it doesn't work and looks ugly in the EmulationStation UI.

@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
@Gadgetoid
Gadgetoid / README.md
Last active September 30, 2024 12:30
Raspberry Pi 5 - All channels on pwm0
@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 / 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 / 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 / led-matrix-5x5-dimension.svg
Created January 15, 2019 18:37
svg dimension for the Pimoroni 5x5 LED Matrix Breakout
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Gadgetoid
Gadgetoid / NaturewatchCameraServer.py
Created June 19, 2018 13:59
NaturewatchCameraServer with Button SHIM support
#!/usr/bin/env python
import json
import cv2
import os
import imutils
import buttonshim
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
from SocketServer import ThreadingMixIn
from ChangeDetector import ChangeDetector
import time
@Gadgetoid
Gadgetoid / midi.py
Created March 12, 2018 16:10
Unicorn HAT HD MIDI fiddling. Using raw MIDI read from Python.
import unicornhathd
import time
from threading import Thread
import colorsys
MIDI_NOTE_OFF = 0x80
MIDI_NOTE_ON = 0x90
MIDI_AFTERTOUCH = 0xA0
MIDI_CC = 0xB0
MIDI_PATCH = 0xC0
@Gadgetoid
Gadgetoid / __init__.py
Created January 10, 2018 09:55
Unicorn HAT HD - Multiple Display Driver
#!/usr/bin/env python
import colorsys
import time
import RPi.GPIO as GPIO
try:
import numpy
except ImportError: