void setup() {
// put your setup code here, to run once:
pinMode(9, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
tone(9, map(analogRead(A0), 0, 1023, 50, 5000));
}
void setup() {
// put your setup code here, to run once:
pinMode(9, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
tone(9, map(analogRead(A0), 0, 1023, 50, 5000));
}