gp2y0a21-range-meter

xod/common-hardware/gp2y0a21-range-meter

Reads Sharp infrared range meter GP2Y0A21YK0F (the one with 10…80 cm range). Possible errors: — Invalid port
gp2y0a21-range-meter
@/gp2y0a21-range-meter
Deprecated: Use `xod-dev/sharp-irm/gp2y0a21-range-meter` instead
Reads Sharp infrared range meter GP2Y0A21YK0F (the one with 10…80 cm range). Possible errors: — Invalid port
PORTport
Board port number the sensor is connected to.
UPDpulse
Triggers an update, i.e. reading values again.
gp2y0a21-range-meter
PORT
UPD
Dm
DONE
DONEpulse
Fires when reading is done
Dmnumber
Measured distance in meters. Trustworhy only for distances in [0.1, 0.8] meters range.