Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Handbrake and sequential shifter
Handbrake with ampping and contrain
Check your range with serial monitor and set your numbers below
void setup() {
pinMode(11, INPUT_PULLUP);
pinMode(12, INPUT_PULLUP);
void loop() {
int val = analogRead(0);
val = map(val,550,280, 0, 1024);
val = constrain(val, 0, 1024);//then constrain for noise reduction
Joystick.button(11, digitalRead(11));
Joystick.button(12, digitalRead(12));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment