/** * default constructor; using this constructor assumes that: * (1) a pin state of HIGH is POWER ON * (2) a pin state of LOW is POWER OFF * * @param pin GPIO digital output pin */ public GpioPowerComponent(GpioPinDigitalOutput pin) { this.pin = pin; this.pin.addListener(listener); }
/** * default constructor; using this constructor assumes that: * (1) a pin state of HIGH is LIGHT ON * (2) a pin state of LOW is LIGHT OFF * * @param pin GPIO digital output pin */ public GpioLightComponent(GpioPinDigitalOutput pin) { this.pin = pin; this.pin.addListener(listener); }
/** * default constructor; using this constructor assumes that: * (1) a pin state of HIGH is RELAY CLOSED * (2) a pin state of LOW is RELAY OPEN * * @param pin GPIO digital output pin */ public GpioRelayComponent(GpioPinDigitalOutput pin) { this.pin = pin; this.pin.addListener(listener); }
/** * default constructor; using this constructor assumes that: * (1) a pin state of HIGH is LIGHT ON * (2) a pin state of LOW is LIGHT OFF * * @param pin GPIO digital output pin */ public GpioLightComponent(GpioPinDigitalOutput pin) { this.pin = pin; this.pin.addListener(listener); }
/** * default constructor; using this constructor assumes that: * (1) a pin state of HIGH is LIGHT ON * (2) a pin state of LOW is LIGHT OFF * * @param pin GPIO digital output pin */ public GpioLEDComponent(GpioPinDigitalOutput pin) { this.pin = pin; this.pin.addListener(listener); }
/** * default constructor; using this constructor assumes that: * (1) a pin state of HIGH is RELAY CLOSED * (2) a pin state of LOW is RELAY OPEN * * @param pin GPIO digital output pin */ public GpioRelayComponent(GpioPinDigitalOutput pin) { this.pin = pin; this.pin.addListener(listener); }
/** * default constructor; using this constructor assumes that: * (1) a pin state of HIGH is POWER ON * (2) a pin state of LOW is POWER OFF * * @param pin GPIO digital output pin */ public GpioPowerComponent(GpioPinDigitalOutput pin) { this.pin = pin; this.pin.addListener(listener); }
/** * default constructor; using this constructor assumes that: * (1) a pin state of HIGH is LIGHT ON * (2) a pin state of LOW is LIGHT OFF * * @param pin GPIO digital output pin */ public GpioLEDComponent(GpioPinDigitalOutput pin) { this.pin = pin; this.pin.addListener(listener); }
output.addListener(new GpioPinListenerDigital() { @Override public void handleGpioPinDigitalStateChangeEvent(GpioPinDigitalStateChangeEvent event) {
output.addListener(new GpioPinListenerDigital() { @Override public void handleGpioPinDigitalStateChangeEvent(GpioPinDigitalStateChangeEvent event) {
output.addListener(new GpioPinListenerDigital() { @Override public void handleGpioPinDigitalStateChangeEvent(GpioPinDigitalStateChangeEvent event) {
output.addListener(new GpioPinListenerDigital() { @Override public void handleGpioPinDigitalStateChangeEvent(GpioPinDigitalStateChangeEvent event) {
output.addListener(new GpioPinListenerDigital() { @Override public void handleGpioPinDigitalStateChangeEvent(GpioPinDigitalStateChangeEvent event) {
output.addListener(new GpioPinListenerDigital() { @Override public void handleGpioPinDigitalStateChangeEvent(GpioPinDigitalStateChangeEvent event) {