Skip to content

Instantly share code, notes, and snippets.

@lucascolusso
lucascolusso / sketch
Created July 20, 2019 17:22
A shortcut keyboard for designers
#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()
{