Skip to content

Instantly share code, notes, and snippets.

View rehael's full-sized avatar

Marcin W. Dąbrowski rehael

View GitHub Profile
@rehael
rehael / ProTrinketKeyboard.ino
Created March 27, 2017 21:20
ProTrinketKeyboard in CM switch tester body
#include <ProTrinketKeyboard.h> // Ensure the library is installed
// Switches are connected from ground to these defined pins
const int P_CTRL = 4;
const int P_SHFT = 8;
const int P_UP = 12;
const int P_DN = 10;
const int P_LT = 9;
const int P_RT = 11;
Starting from balanced:
(sys, eng, wep)
(1.5, 1.5, 3.0) = right
(1.5, 3.0, 1.5) = up
(3.0, 1.5, 1.5) = left
(1.0, 1.0, 4.0) = right, right
(2.5, 2.5, 1.0) = left, up
(1.0, 4.0, 1.0) = up, up
(2.5, 1.0, 2.5) = left, right
(4.0, 1.0, 1.0) = left, left