parameters: (self, ola_wrapper, universe, frame_rate, slot_count)
docstring: Create a new DMXSender:
  
      Args:
        ola_wrapper: the ClientWrapper to use
        universe: universe number to send on
        frame_rate: frames per second
        slot_count: number of slots to send
docstring_summary: Create a new DMXSender:
docstring_tokens: Create a new DMXSender :
function: def __init__(self, ola_wrapper, universe, frame_rate, slot_count):
      """Create a new DMXSender:
  
      Args:
        ola_wrapper: the ClientWrapper to use
        universe: universe number to send on
        frame_rate: frames per second
        slot_count: number of slots to send
      """
      self._wrapper = ola_wrapper
      self._universe = universe
      self._data = array.array('B')
      self._frame_count = 0
      self._slot_count = max(0, min(int(slot_count), 512))
      self._send = True
  
      if (frame_rate > 0 and slot_count > 0):
        logging.info('Sending %d FPS of DMX data with %d slots' %
                     (frame_rate, self._slot_count))
        self._data.extend([0] * self._slot_count)
        self._frame_interval = 1000 / frame_rate
        self.SendDMXFrame()
function_tokens: def __init__ ( self , ola_wrapper , universe , frame_rate , slot_count ) : self . _wrapper = ola_wrapper self . _universe = universe self . _data = array . array ( 'B' ) self . _frame_count = 0 self . _slot_count = max ( 0 , min ( int ( slot_count ) , 512 ) ) self . _send = True if ( frame_rate > 0 and slot_count > 0 ) : logging . info ( 'Sending %d FPS of DMX data with %d slots' % ( frame_rate , self . _slot_count ) ) self . _data . extend ( [ 0 ] * self . _slot_count ) self . _frame_interval = 1000 / frame_rate self . SendDMXFrame ( )