Public Member Functions | |
def | __init__ |
def | value |
Public Attributes | |
Element | |
pin |
Definition at line 1242 of file element_driver.py.
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.
def src.element_driver.Ping.value | ( | self, | |
cached = False |
|||
) |
Definition at line 1253 of file element_driver.py.
Definition at line 1248 of file element_driver.py.
Definition at line 1248 of file element_driver.py.