lib/surface_master/launchpad/device.rb in surface_master-0.2.1 vs lib/surface_master/launchpad/device.rb in surface_master-0.4.0
- old
+ new
@@ -146,10 +146,10 @@
# For paletted changes, commands available include:
# 0x0C -> Column
# 0x0D -> Row
# 0x0E -> All LEDs
[0x0B,
- { led: decode_led(opts),
+ { led: decode_led(opts)[1],
color: [opts[:red] || 0x00, opts[:green] || 0x00, opts[:blue] || 0x00] }]
end
def output!(status, data1, data2)
outputs!(message(status, data1, data2))