Overview | Package | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## jcontrol.io
Class ADC

    java.lang.Object
      jcontrol.io.ADC

    public class ADC

extends Object

Control of JControls analog-digital converter. This is used to read out analog devices, e.g. thermometers, voltmeters connected to JControl.

The number of available ADC-channels is hardware dependent, you can

- find out how many channels are available using `Management.getProperty("io.adcchannels")`,
- find out how the ADC channels are assigned to the JControl pins in the `GPIO` class.

Author:
  Marcus Timmermann, Andreas Wesseler
Available on JControl Devices:

  all

Constructor Summary
`ADC()`

Method Summary
`static int` | `getValue(int channel)` Returns the current Value of the selected channel (analog digital conversion is performed immediately).

Methods inherited from class java.lang.Object
`clone, equals, notifyAll, wait`

Constructor Detail

### ADC

    public ADC()

Method Detail

### getValue

    public static int getValue(int channel)

  Returns the current Value of the selected channel (analog digital conversion is performed immediately).

  Returns:
    the actual ADC value (range: 0 ... 255)

Overview | Package | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD