added DCC Message Debug code to Fahrstuhl example to assist with debugging initial setup

bumped to version 2.0.13
This commit is contained in:
Alex Shepherd
2022-07-30 15:39:39 +12:00
parent f1f214af3a
commit 24d6689b24
2 changed files with 17 additions and 1 deletions

View File

@@ -10,6 +10,9 @@
#include <EEPROM.h>
#include <NmraDcc.h>
// You can print every DCC packet by un-commenting the line below
//#define NOTIFY_DCC_MSG
// Define the Arduino Pin to connect to the DCC input signal
#define DCC_PIN 2
@@ -469,3 +472,16 @@ void loop()
}
wasRunning = stepper.isRunning();
}
#ifdef NOTIFY_DCC_MSG
void notifyDccMsg( DCC_MSG * Msg)
{
Serial.print("notifyDccMsg: ") ;
for(uint8_t i = 0; i < Msg->Size; i++)
{
Serial.print(Msg->Data[i], HEX);
Serial.write(' ');
}
Serial.println();
}
#endif

View File

@@ -1,5 +1,5 @@
name=NmraDcc
version=2.0.12
version=2.0.13
author=Alex Shepherd, Wolfgang Kuffer, Geoff Bunza, Martin Pischky, Franz-Peter Müller, Sven (littleyoda), Hans Tanner, bugfixes by Jueff
maintainer=Alex Shepherd <kiwi64ajs@gmail.com>
sentence=Enables NMRA DCC Communication