GroveSoundLM386 class
The Grove Sound Sensor can detect the sound intensity of the environment.
The main component of the module is a simple microphone, which is based on the LM386 amplifier and an electret microphone. This module's output is analogue.
Constructors
- GroveSoundLM386(Mraa _mraa, MraaAioContext _context, [int sampleCount = 5])
- Sample count can be anything in the range 5..500, values outside this range assume 5 or 500 as appropriate.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sampleCount → int
-
The sample count
no setter
- scaled → int
-
Gat a scaled raw value from 1..10, i.e for driving a led bar
no setter
- smoothed → int
-
Get a smoothed value averaged over sampleCount samples
no setter
- smoothScaled → int
-
Gat a scaled smooth value from 1..10, i.e for driving a led bar
no setter
- value → int
-
Get a raw value directly from the sound sensor
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited