|
RSeries astromech firmware
|
|
Go to the documentation of this file.
43 unsigned long currentMillis = millis();
unsigned fSampleCount
Definition: MicrophoneAmplitude.h:92
Base class for all animated devices. AnimatedEvent::animate() is called for each device once through ...
Definition: AnimatedEvent.h:18
byte fGain
Definition: MicrophoneAmplitude.h:98
Reads a microphone amplitude and makes it available as PeakValueProvider input.
Definition: MicrophoneAmplitude.h:16
Base class peak value providers, currently only microphone amplitude.
Definition: PeakValueProvider.h:13
unsigned fPeriod
Definition: MicrophoneAmplitude.h:91
byte fPeakToPeak
Definition: MicrophoneAmplitude.h:97
byte getPeakValue()
Definition: MicrophoneAmplitude.h:76
unsigned int fSignalMin
Definition: MicrophoneAmplitude.h:96
unsigned int fSample
Definition: MicrophoneAmplitude.h:94
virtual void animate()
Reads the microphone connected to the analog port specified by the constructor and calculates the amp...
Definition: MicrophoneAmplitude.h:41
MicrophoneAmplitude(const byte analogPin=0, const int periodMillis=50)
Default Constructor.
Definition: MicrophoneAmplitude.h:23
byte fPin
Definition: MicrophoneAmplitude.h:90
byte fPeakValue
Definition: PeakValueProvider.h:41
unsigned int getRawSample()
Definition: MicrophoneAmplitude.h:84
void setGain(byte gainFactor)
Set the gain.
Definition: MicrophoneAmplitude.h:68
unsigned int fSignalMax
Definition: MicrophoneAmplitude.h:95
unsigned long fStartPeriod
Definition: MicrophoneAmplitude.h:93