EvoLineLeader#
- class EvoLineLeader(channel, i2c=I2CA, address=0x10)#
Eight-position line sensor reader for the Evo line leader board.
- readPosition(position)#
Read one line-sensor position.
- Parameters:
position (int) – Position index supported by the board.
- Returns:
Integer reflected reading inverted from the device value, or
0if the position is invalid or unavailable.
- setOversamplingRatio(ratio)#
Set the oversampling ratio register.
- Returns:
None.
- getOversamplingRatio()#
Read the active oversampling ratio.
- Returns:
Integer ratio value, or
0on read error.
- readAll()#
Read all line positions.
- Returns:
Tuple of eight integer readings.