|
ME 405 Romi
|
The IR_Sensor class is an object for each individual ir sensor on our line sensor. More...
Public Member Functions | |
| __init__ (self, my_pin) | |
Public Attributes | |
| adc = ADC(my_pin) | |
| int | black_ref = 0 |
| int | white_ref = 0 |
| bool | calibrated = False |
The IR_Sensor class is an object for each individual ir sensor on our line sensor.
Really just holds which sensor is which pin.
init is the IR_Sensor object initializer which takes 1 argument.
| my_pin | : my_pin is the pyb pin ID of the IR sensor |
Definition at line 14 of file ir_sensor.py.
| ir_sensor.IR_Sensor.__init__ | ( | self, | |
| my_pin ) |
Definition at line 16 of file ir_sensor.py.
| ir_sensor.IR_Sensor.adc = ADC(my_pin) |
Definition at line 17 of file ir_sensor.py.
| int ir_sensor.IR_Sensor.black_ref = 0 |
Definition at line 18 of file ir_sensor.py.
| bool ir_sensor.IR_Sensor.calibrated = False |
Definition at line 20 of file ir_sensor.py.
| int ir_sensor.IR_Sensor.white_ref = 0 |
Definition at line 19 of file ir_sensor.py.