Since PWM is a little fraught with gotchas, this is mostly a message to future me-
(Note to self, rtfm - https://datasheets.raspberrypi.com/rp1/rp1-peripherals.pdf)
| pin | a0 | a3 |
|---|---|---|
| GPIO19 | PWM0_CHAN3 | |
| GPIO18 | PWM0_CHAN2 |
| 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 $@ |
Since PWM is a little fraught with gotchas, this is mostly a message to future me-
(Note to self, rtfm - https://datasheets.raspberrypi.com/rp1/rp1-peripherals.pdf)
| pin | a0 | a3 |
|---|---|---|
| GPIO19 | PWM0_CHAN3 | |
| GPIO18 | PWM0_CHAN2 |
I owe my very rapid learning journey in the world of ConfigFs to several key sources which aren't necessarily relevant to this result, but I feel deserve a mention anyway.
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.
| 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 |
This is a horrible, hacky, proof of concept mess for Pi VU Meter on Volumio It details steps with the old phatmeter library, but should work with PiVuMeter too, simply change "ameter" to "pivumeter" and link the right lib accordingly
REQUIRED: Create /etc/udev/rules.d/60-i2c.rules with the contents:
KEREL=="i2c-1", GROUP="i2C", MODE="0777"
Starting from Jessie or Jessie Lite
curl get.pimoroni.com/phatbeat | bash
Then install VLC:
sudo apt-get install vlc-nox
| SUBSYSTEMS=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="500a", MODE="0660", GROUP="dialout" |
| ......................................................................... | |
| .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....... |