Public Member Functions | |
def | __init__ |
def | value |
Public Attributes | |
pin | |
serializer |
Definition at line 1162 of file serializer_driver.py.
def serializer_driver.Ping.__init__ | ( | self, | |
serializer, | |||
pin | |||
) |
Usage: myPing = Ping(serializer, 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 1163 of file serializer_driver.py.
def serializer_driver.Ping.value | ( | self, | |
cached = False |
|||
) |
Definition at line 1173 of file serializer_driver.py.
Definition at line 1168 of file serializer_driver.py.
Definition at line 1168 of file serializer_driver.py.