code: def sonar_config(self, trigger_pin, echo_pin, cb=None, ping_interval=50,
                       max_distance=200, cb_type=None):
          
          task = asyncio.ensure_future(self.core.sonar_config(trigger_pin,
                                                              echo_pin, cb,
                                                              ping_interval,
                                                              max_distance, cb_type))
          self.loop.run_until_complete(task)
docs: Configure the pins,ping interval and maximum distance for an HC-SR04
          type device.
          Single pin configuration may be used. To do so, set both the trigger
          and echo pins to the same value.
          Up to a maximum of 6 SONAR devices is supported
          If the maximum is exceeded a message is sent to the console and the
          request is ignored.
          NOTE: data is measured in centimeters
  
          This is FirmataPlus feature.
  
          :param trigger_pin: The pin number of for the trigger (transmitter).
  
          :param echo_pin: The pin number for the received echo.
  
          :param cb: optional callback function to report sonar data changes
  
          :param ping_interval: Minimum interval between pings. Lowest number
                                to use is 33 ms.Max is 127
  
          :param max_distance: Maximum distance in cm. Max is 200.
  
          :param cb_type: direct call or asyncio yield from
  
          :returns: No return value