Arduino Function: Esplora.readMicrophone

Description

This function read the amplitude from the microphone. It returns a valure between 0 and 1023.

Syntax

readMicrophone()

Returns

 int : The amplitude mapped to a range of 0 to 1023.

Examples

#include <Esplora.h>

void setup()
{
Serial.begin(9600);
}

void loop()
{
int value = Esplora.readMicrophone();
Serial.println(value);

delay(1000);
}


Based on the reference originally written by Arduino Community,  wiring.org.co and  arduino.cc