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

@ -33,8 +33,8 @@ void setup() {
void loop() { void loop() {
digitalWrite( SPEAKER_PIN, LOW ); // 0v to pin 11 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 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
} }

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

Loading…
Cancel
Save