Class PimoroniShimController
-
- All Implemented Interfaces:
-
crackers.kobots.mqtt.homeassistant.LightController
public final class PimoroniShimController implements LightController
Controller for a light device backed by a Pimoroni LED Shim on a Raspberry Pi.
NOTE This product is no longer available.
-
-
Field Summary
Fields Modifier and Type Field Description private final String
controllerIcon
private final List<String>
lightEffects
-
Constructor Summary
Constructors Constructor Description PimoroniShimController(PimoroniLEDShim device)
-
Method Summary
Modifier and Type Method Description String
getControllerIcon()
List<String>
getLightEffects()
<Error class: unknown class>
set(LightCommand command)
Set the state of the light. Unit
exec(String effect)
Execute an effect in some sort of completable manner. LightState
current()
Get the state of the light. -
-
Method Detail
-
getControllerIcon
String getControllerIcon()
-
getLightEffects
List<String> getLightEffects()
-
set
<Error class: unknown class> set(LightCommand command)
Set the state of the light.
-
exec
Unit exec(String effect)
Execute an effect in some sort of completable manner. Note this must be cancellable by any subsequent commands.
-
current
LightState current()
Get the state of the light.
-
-
-
-