text: """
  :author: Thomas Delaet <thomas@delaet.org>
  """
  import velbus
  
  COMMAND_CODE = 0xf9
  
  
  class VeryFastBlinkingLedMessage(velbus.Message):
      """
      send by: VMB4RYLD
      received by: VMB6IN
      """
  
      def __init__(self, address=None):
          velbus.Message.__init__(self)
          self.leds = []
          self.set_defaults(address)
  
      def populate(self, priority, address, rtr, data):
          """
          :return: None
          """
          assert isinstance(data, bytes)
          self.needs_low_priority(priority)
          self.needs_no_rtr(rtr)
          self.needs_data(data, 1)
          self.set_attributes(priority, address, rtr)
          self.leds = self.byte_to_channels(data[0])
  
      def data_to_binary(self):
          """
          :return: bytes
          """
          return bytes([COMMAND_CODE, self.channels_to_byte(self.leds)])
  
  
  velbus.register_command(COMMAND_CODE, VeryFastBlinkingLedMessage)
  