Reference.EsploraReadMicrophone History

Hide minor edits - Show changes to output

December 04, 2012, at 07:41 PM by Scott Fitzgerald -
Changed line 29 from:
Serial.begin(9600);
to:
Serial.begin(9600);
Changed line 31 from:
to:
Changed lines 34-38 from:
int value = Esplora.readMicrophone();
Serial.println(value);

delay(1000);
}
to:
int value = Esplora.readMicrophone();
Serial.println(value);

delay(1000);
}
December 04, 2012, at 07:37 PM by Scott Fitzgerald -
Deleted line 2:
Changed lines 7-8 from:
Read the analog value of the microphone. It return a valure in the 0 - 1023 range.
to:
Read the amplitude from the microphone. It returns a valure between 0 and 1023.
Changed lines 19-21 from:
The microphone position in the range from 0 to 1023.

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

Changed line 24 from:
[@
to:
(:source lang=arduino tabwidth=4:)
Changed line 39 from:
@]
to:
(:sourceend:)
December 03, 2012, at 04:20 PM by Federico -
Added lines 1-40:
[[EsploraLibrary | Esplora]]


!!readMicrophone()

!!!!Description

Read the analog value of the microphone. It return a valure in the 0 - 1023 range.

!!!!Syntax

readMicrophone()

!!!!Parameters

none

!!!!Returns

The microphone position in the range from 0 to 1023.


!!!!Example

[@
#include <Esplora.h>

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

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

delay(1000);
}
@]

Share