code: def encoder_config(self, pin_a, pin_b, cb=None, cb_type=None,
                         hall_encoder=False):
          
          task = asyncio.ensure_future(self.core.encoder_config(pin_a, pin_b,
                                                                cb, cb_type,
                                                                hall_encoder))
          self.loop.run_until_complete(task)
docs: This command enables the rotary encoder (2 pin + ground) and will
          enable encoder reporting.
  
          This is a FirmataPlus feature.
  
          Encoder data is retrieved by performing a digital_read from
          pin a (encoder pin 1)
  
          :param pin_a: Encoder pin 1.
  
          :param pin_b: Encoder pin 2.
  
          :param cb: callback function to report encoder changes
  
          :param cb_type: Constants.CB_TYPE_DIRECT = direct call
                          or Constants.CB_TYPE_ASYNCIO = asyncio coroutine
  
          :param hall_encoder: wheel hall_encoder - set to True to select
                               hall encoder support support.
  
          :returns: No return value