Microphone Class
- ID: microphone
- Name: Simple Analog Microphone
- Other Names: Grove Sound Sensor
- Category: sound
- Manufacturer: seeed
- Link: http://www.seeedstudio.com/wiki/Grove_-_Sound_Sensor
- Connection: analog
- Kit: gsk
This module defines the Analog Microphone sensor

Item Index
Methods
Microphone
-
micPin
Instantiates a Microphone object
Parameters:
-
micPinNumberPin where the microphone is connected
Returns:
getSampledWindow
-
freqMS -
numberOfSamples -
buffer
Gets samples from the microphone according to the provided window and number of samples
Parameters:
-
freqMSNumberTime between each sample (in microseconds)
-
numberOfSamplesNumberNumber of sample to sample for this window
-
bufferUint16_t *Buffer with sampled data
Returns:
findThreshold
-
ctx -
threshold -
buffer -
len
Given the sampled buffer, this method returns TRUE/FALSE if threshold is reached
Parameters:
-
ctxThresholdContext *Threshold context
-
thresholdNumberSample threshold
-
bufferUint16_t *Buffer with samples
-
lenNumberBuffer length
Returns:
printGraph
-
ctx
Prints a running average of the threshold context
Parameters:
-
ctxThresholdContext *Threshold context