Skip to content

Instantly share code, notes, and snippets.

@antonprafanto
Created August 30, 2023 02:21
Show Gist options
  • Save antonprafanto/91a40f21cc5956cd5e188347dea9c225 to your computer and use it in GitHub Desktop.
Save antonprafanto/91a40f21cc5956cd5e188347dea9c225 to your computer and use it in GitHub Desktop.
const int potPin = 34; // pin potensiometer
int potValue = 0; // variabel untuk menyimpan nilai potensiometer
void setup() {
Serial.begin(115200);
pinMode(potPin, INPUT); // inisialisasi pin sebagai input
delay(1000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment