lib/launchpad/device.rb in launchpad-0.2.0 vs lib/launchpad/device.rb in launchpad-0.2.1
- old
+ new
@@ -143,10 +143,13 @@
# * integer: calculated using the formula
# <tt>color = 16 * green + red</tt>
# * Hash:
# [<tt>:red</tt>] brightness of red LED
# [<tt>:green</tt>] brightness of green LED
- # [<tt>:mode</tt>] button mode
+ # [<tt>:mode</tt>] button mode, defaults to <tt>:normal</tt>, one of:
+ # [<tt>:normal/tt>] updates the LEDs for all circumstances (the new value will be written to both buffers)
+ # [<tt>:flashing/tt>] updates the LEDs for flashing (the new values will be written to buffer 0 while the LEDs will be off in buffer 1, see buffering_mode)
+ # [<tt>:buffering/tt>] updates the LEDs for the current update_buffer only
# the array consists of 64 colors for the grid buttons,
# 8 colors for the scene buttons (top to bottom)
# and 8 colors for the top control buttons (left to right),
# maximum 80 values - excessive values will be ignored,
# missing values will be filled with 0