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.
Package: arduino