upm
0.4.1
Sensor/Actuator repository for libmraa (v0.8.0)
|
API for the Analog Microphone. More...
This module defines the Analog Microphone sensor
Public Member Functions | |
synchronized void | delete () |
Microphone (int micPin) | |
int | getSampledWindow (long freqMS, short[] numberOfSamples) |
int | findThreshold (thresholdContext ctx, long threshold, short[] buffer) |
void | printGraph (thresholdContext ctx) |
Microphone | ( | int | micPin | ) |
Instantiates a Microphone object
micPin | Pin where the microphone is connected |
void printGraph | ( | thresholdContext | ctx | ) |
Prints a running average of the threshold context
ctx | Threshold context |