Package com.tccc.kos.core.service.gpio
Class GpioOutputPin
java.lang.Object
com.tccc.kos.core.service.gpio.GpioOutputPin
GPIO output pin.
- Version:
- 2025-06-19
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getPin()
Return the pin number.boolean
isReady()
Return true if the pin is ready to be set.void
setListener
(GpioOutputPinListener listener) Set the listener to detect when the pin is ready to be updated.void
setValue
(boolean val) Set the value of the output pin.
-
Constructor Details
-
GpioOutputPin
public GpioOutputPin()
-
-
Method Details
-
setListener
Set the listener to detect when the pin is ready to be updated.- Parameters:
listener
- the new listener
-
getPin
public int getPin()Return the pin number.- Returns:
- the GPIO pin number
-
isReady
public boolean isReady()Return true if the pin is ready to be set.- Returns:
- true if ready to be set
-
setValue
Set the value of the output pin.- Parameters:
val
- the value to set to- Throws:
IOException
-