DCC may not be filtered correct at the moment. Signal polarity from rail isn't relevant. Library is working with timings only. Pin on Arduino must be Pinchange-interrupt-capable.
There was an error while loading. Please reload this page. This is an Arduino decoder sketch with library for decoding the signals from the Märklin-Motorola-protocol ...