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 |
---|---|
protected 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
getMode
close, getKey, isOpen
protected 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–2018 mattjlewis. All rights reserved.