Skip to content

Instantly share code, notes, and snippets.

@ytsuboi
Created April 5, 2026 01:31
Show Gist options
  • Select an option

  • Save ytsuboi/358aba01bffde1f1532c7cf1bb11b11f to your computer and use it in GitHub Desktop.

Select an option

Save ytsuboi/358aba01bffde1f1532c7cf1bb11b11f to your computer and use it in GitHub Desktop.
just read a value of plugged potentiometers
int Mixture = 0;
int Throttle = 0;
int Carb = 0;
char buf[44];
void setup() {
Serial.begin(9600);
}
void loop() {
Mixture = analogRead(A3);
Throttle = analogRead(A0);
Carb = analogRead(A1);
sprintf(buf, "%d, %d, %d", Mixture, Throttle, Carb);
Serial.println(buf);
delay(1000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment