Public Member Functions | Public Attributes
src.element_driver.Ping Class Reference

List of all members.

Public Member Functions

def __init__
def value

Public Attributes

 Element
 pin

Detailed Description

Definition at line 1242 of file element_driver.py.


Constructor & Destructor Documentation

def src.element_driver.Ping.__init__ (   self,
  Element,
  pin 
)
Usage: myPing = Ping(Element, pin)
   reading = myPing.value()
   reading = myPing.value(cached=True) # gets value from the cache
    The Parallax Ping Sonar Sensor class wraps a digital sensor port returns the value
    from the pping() command which in turn is in inches or cm depending on the units settings.

Definition at line 1243 of file element_driver.py.


Member Function Documentation

def src.element_driver.Ping.value (   self,
  cached = False 
)

Definition at line 1253 of file element_driver.py.


Member Data Documentation

Definition at line 1248 of file element_driver.py.

Definition at line 1248 of file element_driver.py.


The documentation for this class was generated from the following file:


element
Author(s): Patrick Goebel
autogenerated on Mon Jan 6 2014 11:16:54