This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 \") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import board | |
import digitalio | |
led_red = digitalio.DigitalInOut(board.LED_RED) | |
led_green = digitalio.DigitalInOut(board.LED_GREEN) | |
led_blue = digitalio.DigitalInOut(board.LED_BLUE) | |
led_red.direction = digitalio.Direction.OUTPUT | |
led_green.direction = digitalio.Direction.OUTPUT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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. |