public static class PiconZero.PiconZeroDigitalOutputDevice extends AbstractDevice implements GpioDigitalOutputDeviceInterface
Constructor and Description |
---|
PiconZeroDigitalOutputDevice(PiconZero piconZero,
String key,
int gpio,
int channel,
boolean initialValue) |
Modifier and Type | Method and Description |
---|---|
void |
closeDevice() |
int |
getChannel() |
int |
getGpio() |
boolean |
getValue() |
void |
setValue(boolean value) |
close, getDeviceFactory, getKey, isOpen
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getKey, isOpen
public void closeDevice()
closeDevice
in class AbstractDevice
public int getGpio()
getGpio
in interface GpioDeviceInterface
public int getChannel()
public boolean getValue()
getValue
in interface GpioDigitalDeviceInterface
public void setValue(boolean value)
setValue
in interface GpioDigitalOutputDeviceInterface
Copyright © 2016–2017 mattjlewis. All rights reserved.