code: def digital_read(self, pin):
          
          task = asyncio.ensure_future(self.core.digital_read(pin))
          value = self.loop.run_until_complete(task)
          return value
docs: Retrieve the last data update for the specified digital pin.
          It is intended for a polling application.
  
          :param pin: Digital pin number
  
          :returns: Last value reported for the digital pin