void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(2, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int valorPotenciometro1 = 0;
valorPotenciometro1 = analogRead(0);
Serial.println(valorPotenciometro1);
tone(2, valorPotenciometro1);
int valorPotenciometro2 = 0;
valorPotenciometro2 = analogRead(1);
Serial.println(valorPotenciometro2);
tone(3, valorPotenciometro2);
}