UpdateTOF module

Houses the UpdateTOF task class.

class UpdateTOF.UpdateTOF(s_tofdistance: Share, i2c)

Bases: object

Updates an dafruit_vl53l1x Time of Flight sensor position.

Parameters:
  • s_tofposition (task_share.Share) – Conveys the Time of Flight position, reported in millimeters.

  • i2c (machine.I2C) – Pre-initialized I2C object, designating the i2c bus used.

run()

Implementation as a generator function.

Yields:

int – Machine state.