parameters: (self, event, handler, once=False)
docstring: Add hardware event handler.
docstring_summary: Add hardware event handler.
docstring_tokens: Add hardware event handler .
function: def add_event_handler(self, event, handler, once=False):
  
          """
          Add hardware event handler.
          """
  
          if once:
              self.emitter.once(event, handler)
          else:
              self.emitter.on(event, handler)
function_tokens: def add_event_handler ( self , event , handler , once = False ) : if once : self . emitter . once ( event , handler ) else : self . emitter . on ( event , handler )