Class QwiicTwist

  • All Implemented Interfaces:
    com.diozero.api.DeviceInterface , com.diozero.api.DigitalInputDeviceInterface , java.lang.AutoCloseable

    
    public final class QwiicTwist
     implements DigitalInputDeviceInterface
                        

    A loose Kotlin translation of Python code from https://github.com/fourstix/Sparkfun_CircuitPython_QwiicTwist for the Sparkfun Qwiic Twist.

    The basic operation is:

    • the pretty light is exposed as a WS2811 device

    • this class is a DigitalInputDeviceInterface device for the button

    • along with some DSL functions for readability

    • the encoder can be read (and reset) via several properties