Arduino Potentiometer Simple Code: Difference between revisions
From wikiluntti
(Created page with "== Introduction == Potentiometer == Code 1 == <syntaxhighlight lang="C"> int potVal = 0; void setup() { Serial.begin(9600); } void loop(){ potVal = analogRead(A0); Serial.println( potVal ); } </syntaxhighlight> == Code 2 ==") |
(No difference)
|
Latest revision as of 16:46, 29 November 2024
Introduction
Potentiometer
Code 1
int potVal = 0;
void setup() {
Serial.begin(9600);
}
void loop(){
potVal = analogRead(A0);
Serial.println( potVal );
}