Created
August 2, 2012 01:11
-
-
Save tahnok/3232168 to your computer and use it in GitHub Desktop.
Dashboard demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int potPin1 = 0; // select the input pin for the potentiometer | |
int potPin2 = 1; // select the input pin for the potentiometer | |
int potPin3 = 2; // select the input pin for the potentiometer | |
int val1 = 0; // variable to store the value coming from the sensor | |
int val2 = 0; // variable to store the value coming from the sensor | |
int val3 = 0; // variable to store the value coming from the sensor | |
void setup() { | |
Serial.begin(9600); | |
} | |
void loop() { | |
val1 = analogRead(potPin1); // read the value from the sensor | |
val2 = analogRead(potPin2); // read the value from the sensor | |
val3 = analogRead(potPin3); // read the value from the sensor | |
Serial.print(val1); | |
Serial.print(","); | |
Serial.print(val2); | |
Serial.print(","); | |
Serial.print(val3); | |
Serial.println(); | |
delay(200); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment