/*
- SerialOutput sketch
- Print numbers to the serial port
*/
void setup()
{
Serial.begin(9600); // send and receive at 9600 baud
}
int pot1Pin = 2; // select the input pin for the potentiometer
int val2 = 0; // variable to store the value coming from the sensor
int pot2Pin = 3; // select the input pin for the potentiometer
int val3 = 0; // variable to store the value coming from the sensor
int pot3Pin = 4; // select the input pin for the potentiometer
int val4 = 0; // variable to store the value coming from the sensor
void loop()
{
val2 = analogRead(pot1Pin); // read the value from the sensor
val3 = analogRead(pot2Pin); // read the value from the sensor
val4 = analogRead(pot3Pin); // read the value from the sensor
val2 = map(val2, 0, 1023, 0, 80);
val3 = map(val3, 0, 1023, 0, 80);
val4 = map(val4, 0, 1023, 0, 101);
Serial.print(stxHPI:(val2),(val3),(val4)); // THIS IS where im lost. I can debug and accomplish the map/read
}
something with the print vs printIN, but im not understanding. ??