/*
* Simple Wokwi Microphone Demo
*/
void setup() {
Serial.begin(115200);
pinMode(13, OUTPUT);
}
void loop() {
int sample = analogRead(A0);
Serial.println(sample);
digitalWrite(13, abs(sample - 512) > 50);
}
/*
* Simple Wokwi Microphone Demo
*/
void setup() {
Serial.begin(115200);
pinMode(13, OUTPUT);
}
void loop() {
int sample = analogRead(A0);
Serial.println(sample);
digitalWrite(13, abs(sample - 512) > 50);
}