Skip to content

Instantly share code, notes, and snippets.

@AyrtonRicardo
Last active February 28, 2025 18:10
Show Gist options
  • Select an option

  • Save AyrtonRicardo/b9a0c5b8b77805c19305c1acbc63a9fb to your computer and use it in GitHub Desktop.

Select an option

Save AyrtonRicardo/b9a0c5b8b77805c19305c1acbc63a9fb to your computer and use it in GitHub Desktop.
PedalBox example for Jorge

Can you try this config? Based on the following message:

  • Dat throttle - 5
  • Clk throttle - 6
  • Dat brake - 3
  • Clk brake - 4
  • NO CLUTCH USED
#include "Pedals.h"

Pedals pedals;

void setup() {
  Serial.begin(115200);
  pedals.setThrottleOn(true);
  pedals.setThrottleBits("20bit", "10bit");
  pedals.setThrottleLoadcell(5,6);

  pedals.setBrakeOn(true);
  pedals.setBrakeBits("20bit", "10bit");
   pedals.setBrakeLoadcell(3,4);

  pedals.setClutchOn(true);
  pedals.setClutchBits("20bit", "10bit");
  pedals.setClutchAnalogPin(A1);

  pedals.setup();
}

void loop() {
  pedals.loop();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment