obniz to be used
Rsponse waiting timeout in milliseconds
Some electrical parts or circuits accept "pulse" and echo the "pulse" after delay. This module is best suited for measuring that delay.
This module generates one pulse shot on an io, then measures the response time.
// Javascript Example
obniz.measure.echo({
io_pulse: 0, // io for generate pulse
io_echo: 1, // io to be measured
pulse: "positive", // generate pulse pattern
pulse_width: 0.1, // generate pulse width
measure_edges: 3, // 1 to 4. maximum edges to measure
timeout: 1000, // this is optional. 1000(1sec) is default
callback: function(edges) {
// callback function
console.log(edges);
}
});
Calls each of the listeners registered for a given event.
Return an array listing the events for which the emitter has registered listeners.
Return the number of listeners listening to a given event.
Return the listeners registered for a given event.
Add a listener for a given event.
Add a one-time listener for a given event.
Remove all listeners, or those of the specified event.
Remove the listeners of a given event.
Generated using TypeDoc
The measure module provides hardware level measurement.