upm
0.4.1
Sensor/Actuator repository for libmraa (v0.8.0)
|
Public Member Functions | |
synchronized void | delete () |
Gas (int gasPin) | |
int | getSampledWindow (long freqMS, short[] numberOfSamples) |
int | findThreshold (thresholdContext ctx, long threshold, short[] buffer) |
int | getSampledData (thresholdContext ctx) |
int | getSample () |
void | printGraph (thresholdContext ctx, short resolution) |
int getSample | ( | ) |
Returns one sample from the sensor
int getSampledData | ( | thresholdContext | ctx | ) |
Returns average data for the sampled window
ctx | Threshold context |
void printGraph | ( | thresholdContext | ctx, |
short | resolution | ||
) |
Prints a running average of the threshold context
ctx | Threshold context |