Microphone.ino 403 B

1234567891011121314151617181920212223242526
  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()
  10. {
  11. Serial.begin(115200);
  12. }
  13. void loop()
  14. {
  15. int micValue = analogRead(M5STACKFIRE_MICROPHONE_PIN);
  16. Serial.println(micValue);
  17. delay(1);
  18. }