|
|
__init__(self,
agent)
Constructs an Sensor object. |
|
|
|
int
|
read_pin_raw(self,
pin)
Reads and returns the value on the specified analog input
pin. |
|
|
|
list of ints
|
read_raw(self)
Reads and returns the value (0 - 0xFFFF) on all analog input
pins. |
|
|
|
list of floats
|
read(self)
Reads and returns the value (0 - Vref) on all analog input
pins. |
|
|
|
float
|
read_pin(self,
pin)
Reads and returns the value on the specified analog input
pin. |
|
|
|
|
set_trigger_raw(self,
pin,
amount)
Sets the trigger amount (0 to 0xFFFF) for the specified
pin. |
|
|
|
int
|
get_trigger_raw(self,
pin)
Gets the trigger amount (0 to 0xFFFF) set for the pin. |
|
|
|
|
set_trigger(self,
pin,
amount)
Sets the trigger amount (0 to Vref) for the specified
pin. |
|
|
|
float
|
get_trigger(self,
pin)
Gets the trigger amount (0 to Vref) set for the pin. |
|
|
|
|
add_change_handler(self,
handler)
Adds a handler to be invoked if the input driven on a pin
changes by atleast the trigger amount. |
|
|
|
|
|
|
Inherited from Module:
do_op
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__str__
|