Skip to content

Instantly share code, notes, and snippets.

@drahnreb
drahnreb / pimoroni-dac.dts
Created July 27, 2025 22:40
Audio Amp SHIM (3W Mono Amp) by Pimoroni dts for Radxa Zero3W
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/rockchip.h>
/ {
// This metadata is for tools like dietpi-config
metadata {
title = "Enable Pimoroni Audio Amp SHIM on I2S3-M0";
@drahnreb
drahnreb / jwcc.py
Created November 22, 2024 08:07 — forked from nolanw/jwcc.py
Load JWCC: JSON With Commas and Comments
# Lil loading tool for JWCC: JSON With Commas and Comments.
# See docstrings for loads() and jwcc2json() for more info.
# Public domain.
import json
import re
_INTERESTING_B = re.compile(rb'''
\] # array end
| \} # object end
| (?<! \\)" # string start