Next: Arduino Addons, Previous: Arduino Device Functions, Up: Function Reference [Contents][Index]
Free resources of a ultrasonic object.
dev - ultrasonic object to free
See also: ultrasonic.
Display ultrasonic object.
dev - ultrasonic object to display
See also: ultrasonic.
Read the distance from a ultrasonic device
dev - connected ultrasonic device opened using ultrasonic
distance - distance value in meters from the ultrasonic device, or Inf if out of sensor range
See also: arduino, ultrasonic.
Measure the time for waves to reflect back to the ultrasonic device
dev - connected ultrasonic device opened using ultrasonic()
time - time in seconds, or Inf if out of sensor range
See also: arduino, ultrasonic.
subref for ultrasonic
See also: ultrasonic.
Create an ultrasonic object to communicate to a connected ultrasonic device
ar - connected arduino object
triggerpin - trigger pin for attached device.
echopin - trigger pin for attached device.
propname, propvalue - property name/value pair for values to pass to devices.
Currently known properties:
string designating number format for output (’double’)
dev - created ultrasonic object
The ultrasonic object has the following public properties:
The parent (arduino) for this device
pins used by this object
trigger used for created object
Echo pin set for object
Output format for the created object
See also: arduino, readDistance, readEchoTime.
Next: Arduino Addons, Previous: Arduino Device Functions, Up: Function Reference [Contents][Index]