Buttons interface for Scroll HAT Mini
Pass a :handler option as a pid or {m, f, a} to receive the button events
Summary
Functions
Returns a specification to start this module under a supervisor.
Return the current state of the button
Start a GenServer to watch the buttons on the Scroll HAT Mini
Types
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec get_value(name()) :: 0 | 1
Return the current state of the button
0 - released
1 - pressed
@spec start_link(keyword()) :: GenServer.on_start()
Start a GenServer to watch the buttons on the Scroll HAT Mini
Options:
:handler- pass a pid or an MFA to receive button events