jrt
A Node.js module for a JRT laser distance sensor
const JRT = const id = '/dev/tty.usbserial-0000' JRT
API
read_status()
read_hw ()
read_sw ()
read_sn ()
read_voltage ()
read_measurement ()
laser_on ()
laser_off ()
oneshot_auto ()
oneshot_slow ()
oneshot_fast ()
continuous_exit ()
continuous_auto ()
continuous_slow ()
continuous_fast ()
set_address(desired)
set_offset(offset)
Events
data
Emits the raw data received.
error
Emitted when an error (EE
) message is received.
measurement
Emitted when a measurement message is received.
message
Emits all parsed messages.