Class: L8::Row
Instance Method Summary collapse
Methods inherited from Group
#clear_matrix, #disable_status_leds, #identify, #initialize
Constructor Details
This class inherits a constructor from L8::Group
Instance Method Details
#set_led(x, y, r, g, b) ⇒ Object
3 4 5 6 7 |
# File 'lib/l8/row.rb', line 3 def set_led(x,y,r,g,b) l8index = y / 8 y = y - (l8index * 8) @l8s[l8index].set_led(x,y,r,g,b) end |