module LaunchpadMk2
All the fun of launchpad in one module!
See Launchpad::Device for basic access to launchpad input/ouput and Launchpad::Interaction for advanced interaction features.
The following parameters will be used throughout the library, so here are the ranges:
type
-
type of the button, one of
:grid, :up, :down, :left, :right, :session, :user1, :user2, :mixer, :scene1 - :scene8
x/y
-
x/y coordinate (used when type is set to :grid),
0-7
(from left to right/bottom to top), mandatory whentype
is set to:grid
color
-
color of the LED (value between 0 and 127 inclusive) optional, defaults to
:off
state
-
whether the button is pressed or released,
:down/:up
Constants
- VERSION