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

List of all members.

Public Member Functions

def __init__
def value

Public Attributes

 Element
 pin

Detailed Description

Definition at line 1256 of file element_driver.py.


Constructor & Destructor Documentation

def src.element_driver.GP2D12.__init__ (   self,
  Element,
  pin 
)
Usage: myIR = GP2D12(Element, 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 1257 of file element_driver.py.


Member Function Documentation

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

Definition at line 1267 of file element_driver.py.


Member Data Documentation

Definition at line 1262 of file element_driver.py.

Definition at line 1262 of file element_driver.py.


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


element
Author(s): Patrick Goebel
autogenerated on Sun Oct 5 2014 23:44:54