gokul/macro-six-usbc

A six-key macro keyboard PCB paired with a separate physical enclosure.

Version
0.1.16
License
unset
Stars
0

Use with the tscircuit CLI

tsci is the tscircuit CLI. Install it with npm install -g tscircuit.

tsci clone gokul/macro-six-usbc  # download the package files into ./macro-six-usbc
tsci add gokul/macro-six-usbc    # add it to your project as @tsci/gokul.macro-six-usbc

In a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.

firmware/ws2812_config.h

#pragma once
#define ws2812_port B
#define ws2812_pin 6
#define ws2812_resettime 300
#define ws2812_interrupt_handling 1

// PORTB is in the AVR low I/O space; OUT permits SK6812 timing at an 8 MHz CPU.
#define WS2812_USE_OUT 1
#define w_zeropulse 300
#define w_onepulse 600
#define w_totalperiod 1250