Sha256: 0449ba2feeb967d3551a0c6189075df007f25f05358ba58500411a7b82360afd
Contents?: true
Size: 740 Bytes
Versions: 1
Compression:
Stored size: 740 Bytes
Contents
require 'launchpad_mk2' device = Launchpad::Device.new(:input => false, :output => true) device.reset_all() # sleep 0.5 device.lightn_column([0, 3,6], 45) # sleep 0.5 device.lightn_row([7,6, 2], 22) # sleep 0.5 # device.light_all(63) # sleep 0.5 # device.reset() # sleep 0.5 # device.light_all(79) # sleep 0.5 # device.reset() # sleep 0.5 # device.flash1(4, 4, 63) # sleep 2 device.flashn([[1, 1],[2, 2],[3, 3],[4, 4]], 63) device.pulsen([[4, 1],[4, 2],[4, 3],[4, 4]], 63) sleep 2 # device.pulse(3, 3, 45) # sleep 2 device.reset_all() # device.pulse(3, 3, 63) # sleep 2 # device.scroll_once(45, "Oscar is a snot monster") # sleep 10 # device.scroll_stop() # sleep so that the messages can be sent before the program terminates sleep 0.1
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
launchpad_mk2-0.0.1 | examples/sysex.rb |