Sha256: f85fa8756306f9afbf42ea7dc30802424fb609162933c597ec616f71dffa98dc
Contents?: true
Size: 376 Bytes
Versions: 1
Compression:
Stored size: 376 Bytes
Contents
module L8 class Stack def initialize(*ports) @l8s = [] ports.each do |port| @l8s << L8::Smartlight.new(port) end end def set_led(x,y,r,g,b) l8index = x / 8 x = x - (l8index * 8) @l8s[l8index].set_led(x,y,r,g,b) end def clear_matrix @l8s.each do |l8| l8.clear_matrix end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
l8-0.0.2 | lib/l8/stack.rb |