master
Mark van den Heuvel 5 years ago
parent dbef791bf9
commit 84b2c7cdd7

@ -33,8 +33,8 @@ void setup() {
void loop() {
digitalWrite( SPEAKER_PIN, LOW ); // 0v to pin 11
delay( analogRead(A2)*5 ); // wait*10, analogRead gives values between 0-1023, so max wait is 1sec, lets make it ~5sec by multiplying the read value * 5
delay( analogRead(A2)*5 ); // wait*200, analogRead gives values between 0-1023, so max wait is 1sec, lets make it ~5sec by multiplying the read value * 5
digitalWrite( SPEAKER_PIN, HIGH ); // +5v to pin 11
delay( analogRead(A2)*5 ); // wait*10, analogRead gives values between 0-1023, so max wait is 1sec, lets make it ~5sec by multiplying the read value * 5
delay( analogRead(A2)*5 ); // wait*200, analogRead gives values between 0-1023, so max wait is 1sec, lets make it ~5sec by multiplying the read value * 5
}

@ -134,13 +134,16 @@ void setup() {
}
void loop() {
voice.say(spTWO);
voice.say(spZERO);
//
// if(analogRead(3)>500)
// {
counter();
delay(500);
// counter();
// delay(100);
//while(analogRead(3)>500);
// }

Loading…
Cancel
Save