public class LED extends DigitalOutputDevice
INFINITE_ITERATIONS
pinNumber
Constructor and Description |
---|
LED(GpioDeviceFactoryInterface deviceFactory,
int pinNumber) |
LED(GpioDeviceFactoryInterface deviceFactory,
int pinNumber,
boolean activeHigh,
boolean initialValue) |
LED(int pinNumber) |
LED(int pinNumber,
boolean activeHigh) |
Modifier and Type | Method and Description |
---|---|
void |
blink() |
void |
blink(float onTime,
float offTime,
int n,
boolean background) |
boolean |
isLit() |
close, isOn, off, on, onOffLoop, setOn, setValueUnsafe, toggle
getPinNumber
public LED(int pinNumber) throws RuntimeIOException
RuntimeIOException
public LED(int pinNumber, boolean activeHigh) throws RuntimeIOException
RuntimeIOException
public LED(GpioDeviceFactoryInterface deviceFactory, int pinNumber)
public LED(GpioDeviceFactoryInterface deviceFactory, int pinNumber, boolean activeHigh, boolean initialValue)
public void blink() throws RuntimeIOException
RuntimeIOException
public void blink(float onTime, float offTime, int n, boolean background) throws RuntimeIOException
RuntimeIOException
public boolean isLit() throws RuntimeIOException
RuntimeIOException
Copyright © 2016 mattjlewis. All rights reserved.