Sha256: 9d4a9e7b4bed627871b8985276930be055d65a6a7caca78c63304b0e2b95f4b5

Contents?: true

Size: 414 Bytes

Versions: 1

Compression:

Stored size: 414 Bytes

Contents

require 'launchpad_mk2'

device = Launchpad::Device.new(:input => false, :output => true)

device.change :grid, :x => 0, :y => 0, :color => 56 # fuschia
device.change :grid, :x => 7, :y => 7, :color => 63 # olive
device.change :grid, :x => 0, :y => 7, :color => 72 # red
device.change :grid, :x => 7, :y => 0, :color => 8  # orange

# 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/corners.rb