Snippet - Parallax Memsic 2125 Dual-axis Accelerometer

Parallax Memsic 2125 Dual-axis Accelerometer

Helper driver to get force and tilt values using PinCapture feature of the premium library. In 4.2 version replace PinCapture with SignalCapture and it ill work same way as in 4.1


Nice one, I have never used PinCapture/SignalCapture so it is nice to see a practical use of it.

I like the use of a ‘#region’ for the copyright, it never crossed my mind to do that.

Thank you! As we talked about in the other thread I have to read 2 pulses even though I am interested in one. This is because information on the first pulse is unreliable.

Good stuff A


By the ways if somebody want to use the sensor on an OSHW device (no SignalCapture), the code should be similar to what I use with the Parallax Ping))) sensor.

The only exception is to use InputPort instead of TristatePort and remove code that fires outgoing pulse.