Sha256: 993771dc621cae18b3f3525d354e30ed103d08c16ba5dcacee87059723b51b47
Contents?: true
Size: 1.8 KB
Versions: 2
Compression:
Stored size: 1.8 KB
Contents
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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
launchpad-0.2.0 | lib/launchpad.rb |
launchpad-0.1.1 | lib/launchpad.rb |