public class AnalogComponent extends java.lang.Object implements Component
An analog component needs to be used with an ADC (Analog to Digital Converter) to convert the analog signals to digital ones that can be decoded by the Raspberry Pi.
Modifier and Type | Field and Description |
---|---|
protected ADC |
adc
The ADC (Analogic to Digital converter) to use with this analog component.
|
Constructor and Description |
---|
AnalogComponent(ADC adc)
Constructor for a new analog component, connected to the Raspberry Pi through an ADC.
|
Modifier and Type | Method and Description |
---|---|
ADC |
getADC()
Get the ADC entity used to deal with this analog component.
|
java.lang.String |
getType()
Get the String representation of the type of the component.
|
protected ADC adc
public AnalogComponent(ADC adc)
adc
- the ADC used to concert analog signals to digital ones.public ADC getADC()