Microphone.ino 396 B

12345678910111213141516171819202122
  1. /*
  2. microphone test
  3. hardwware: M5StackFire
  4. please use the serial plotter in the Arduino IDE to show the signal
  5. change the baudrate of the plotter to 115200
  6. September 2018, ChrisMicro
  7. */
  8. #define M5STACKFIRE_MICROPHONE_PIN 34
  9. void setup() { Serial.begin(115200); }
  10. void loop() {
  11. int micValue = analogRead(M5STACKFIRE_MICROPHONE_PIN);
  12. Serial.println(micValue);
  13. delay(1);
  14. }