Skip to content

Instantly share code, notes, and snippets.

View jepler's full-sized avatar

Jeff Epler jepler

View GitHub Profile
@jepler
jepler / code.py
Last active September 28, 2023 12:04
Pure CircuitPython key scanner and USB HID firmware for Unicomp "MINI M" with RP2040 microcontroller
# Pure CircuitPython key scanner and USB HID firmware for Unicomp "MINI M" with RP2040 microcontroller
# Based on study of https://github.com/purdeaandrei/vial-qmk-mini-m/blob/9508763de706e50fb25111363fc1cab23ac8f95c/keyboards/unicomp/mini_m/justify_mike_smith/matrix.c#L20
import gc
import micropython
import microcontroller
from adafruit_hid.keycode import Keycode as K
from adafruit_hid.keyboard import Keyboard
import usb_hid
import supervisor
# SPDX-FileCopyrightText: 2016 Damien P. George
# SPDX-FileCopyrightText: 2017 Scott Shawcroft for Adafruit Industries
# SPDX-FileCopyrightText: 2019 Carter Nelson
# SPDX-FileCopyrightText: 2019 Roy Hooper
# SPDX-FileCopyrightText: 2020 Jeff Epler
#
# SPDX-License-Identifier: MIT
"""
`scorpio` - Neopixel strip driver using RP2040's PIO
@grindars
grindars / steam_bootstrap.sh
Created December 7, 2012 07:53
Steam installer for Debian
#!/bin/bash
#
# Steam installer for Debian wheezy (32- and 64-bit)
#
# Place into empty directory and run.
#
download() {
local url="$1"
local filename="$(basename "$url")"