Skip to content

Instantly share code, notes, and snippets.

Avatar

Lucas Colusso lucascolusso

View GitHub Profile
@lucascolusso
lucascolusso / sketch
Created Jul 20, 2019
A shortcut keyboard for designers
View sketch
#define KEY_LEFT_CTRL 0x01
#define KEY_LEFT_SHIFT 0x02
#define KEY_LEFT_ALT 0x04uint8_t buf[8] = {
0 }; /* Keyboard report buffer */#define PIN_COPY 7
#define PIN_CUT 5
#define PIN_PASTE 6
#define PIN_EYEDROP 4
#define PIN_LOCK 3
#define PIN_SAVE 2int state = 1;void setup()
{