Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 57ba5d7f75
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (33 sloc) 1.843 kB
require 'launchpad/device'
require 'launchpad/interaction'
# 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
# <tt>
# :grid,
# :up, :down, :left, :right, :session, :user1, :user2, :mixer,
# :scene1 - :scene8
# </tt>
# [<tt>x/y</tt>] x/y coordinate (used when type is set to :grid),
# <tt>0-7</tt> (from left to right/top to bottom),
# mandatory when +type+ is set to <tt>:grid</tt>
# [<tt>red/green</tt>] brightness of the red/green LED,
# can be set to one of four levels:
# * off (<tt>:off, 0</tt>)
# * low brightness (<tt>:low, :lo, 1</tt>)
# * medium brightness (<tt>:medium, :med, 2</tt>)
# * full brightness (<tt>:high, :hi, 3</tt>)
# optional, defaults to <tt>:off</tt>
# [+mode+] button mode,
# one of
# * <tt>:normal</tt>
# * <tt>:flashing</tt> (LED is marked as flashing, see Launchpad::Device.flashing_on, Launchpad::Device.flashing_off and Launchpad::Device.flashing_auto)
# * <tt>:buffering</tt> (LED is written to buffer, see Launchpad::Device.start_buffering, Launchpad::Device.flush_buffer)
# optional, defaults to <tt>:normal</tt>
# [+state+] whether the button is pressed or released, <tt>:down/:up</tt>
module Launchpad; end
Jump to Line
Something went wrong with that request. Please try again.