code: def encoder_read(self, pin):
          
          try:
              task = asyncio.ensure_future(self.core.encoder_read(pin))
              value = self.loop.run_until_complete(task)
              return value
          except RuntimeError:
              self.shutdown()
docs: This method retrieves the latest encoder data value.
          It is a FirmataPlus feature.
  
          :param pin: Encoder Pin
  
          :returns: encoder data value