Public Member Functions | |
def | __init__ |
def | value |
Public Attributes | |
pin | |
serializer |
Definition at line 1176 of file serializer_driver.py.
def serializer_driver.GP2D12.__init__ | ( | self, | |
serializer, | |||
pin | |||
) |
Usage: myIR = GP2D12(serializer, pin) reading = myIR.value() reading = myIR.value(cached=True) # gets value from the cache The Sharp GPD12 IR Sensor class wraps an analog sensor port and converts the raw sensor reading to either inches or cm depending on the units settings.
Definition at line 1177 of file serializer_driver.py.
def serializer_driver.GP2D12.value | ( | self, | |
cached = False |
|||
) |
Definition at line 1187 of file serializer_driver.py.
Definition at line 1182 of file serializer_driver.py.
Definition at line 1182 of file serializer_driver.py.