public class SoundSensor extends AnalogComponent
Example Datasheet: SoundSensor
Example of use: SoundSensorExample
adc| Constructor and Description |
|---|
SoundSensor(ADC adc,
ADCChannel soundSensorChannel)
Constructor for a sound sensor using a specific ADC instance and a specific
channel on this ADC to decode analog input from the sound sensor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIntensity()
Get the sound intensity read from the sound sensor.
|
getADC, getTypepublic SoundSensor(ADC adc, ADCChannel soundSensorChannel)
adc - the ADC to use to decode analogic signals from the sound sensor.soundSensorChannel - the channel on the ADC used to read inputs from the sound sensor.