Public Member Functions | Public Attributes
serializer_driver.GP2D12 Class Reference

List of all members.

Public Member Functions

def __init__
def value

Public Attributes

 pin
 serializer

Detailed Description

Definition at line 1176 of file serializer_driver.py.


Constructor & Destructor Documentation

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.


Member Function Documentation

def serializer_driver.GP2D12.value (   self,
  cached = False 
)

Definition at line 1187 of file serializer_driver.py.


Member Data Documentation

Definition at line 1182 of file serializer_driver.py.

Definition at line 1182 of file serializer_driver.py.


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


serializer
Author(s): Patrick Goebel
autogenerated on Mon Oct 6 2014 12:12:01