Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# run this with `curl -fsSL <github raw URL> | sh`
# get QMK_HOME
QMK_FIRMWARE=$(qmk env | grep QMK_FIRMWARE | cut -d '=' -f 2 | sed s.C:/./c/.g | tr -d \")
if [[ -z "$QMK_FIRMWARE" ]]; then
# QMK has not been setup yet
qmk setup -y
QMK_FIRMWARE=$(qmk env | grep QMK_FIRMWARE | cut -d '=' -f 2 | sed s.C:/./c/.g | tr -d \")
@jaygreco
jaygreco / blink.py
Created February 5, 2023 04:55
Circuitpython example for Bit-C PRO
@jaygreco
jaygreco / teardrops_selected.ulp
Created September 1, 2021 04:44
Generate EAGLE teardrops on selected traces only
#usage "<b>Teardrops - v1.05 (02/17/12)</b>\n"
"<p>"
"This ULP allows creation of teardrop-shaped connections from a board's vias/pads to their attached wire segments. "
"Making these connections teardrop shaped enhances manufacturability and reduces board failure by ensuring "
"connectivity between the segment and via/pad in cases where the via hole is not accurately drilled and "
"would otherwise sever the segment."
"<p>"
"<author>Original Author: Tad Artis ([email protected])<br>"
"Modifications: Bob Starr ([email protected])<br>"
"Modification: layer selectable ([email protected])<br>"
@jaygreco
jaygreco / font.h
Last active April 11, 2022 04:07
TIDBIT LED matrix example
#pragma once
#define USE_FONT_3x5
#ifdef USE_FONT_5x7
// standard ascii 5x7 font
// defines ascii characters 0x20-0x7F (32-127)
#define FONT_OFFSET 32
#define FONT_WIDTH 5
#define FONT_HEIGHT 7
@jaygreco
jaygreco / nibble.c
Last active November 7, 2020 22:57
NIBBLE Big LED Example
// The following example shows caps lock status using the big LED instead of the Bit-C LED.
// Add this to the existing code in nibble.c, or in the keymap.c file.
// Uncomment the commented lines to restore bit-c LED (disabled in this example by default)
// Import the Big LED code at the top of the file
#include QMK_KEYBOARD_H
// #include "bitc_led.h"
#include "big_led.h"
// This function is a defult QMK function. It checks the status of CAPS/NUM/SCROLL lock.