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:
@@ -10,6 +10,9 @@
|
|||||||
#include <EEPROM.h>
|
#include <EEPROM.h>
|
||||||
#include <NmraDcc.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 the Arduino Pin to connect to the DCC input signal
|
||||||
#define DCC_PIN 2
|
#define DCC_PIN 2
|
||||||
|
|
||||||
@@ -469,3 +472,16 @@ void loop()
|
|||||||
}
|
}
|
||||||
wasRunning = stepper.isRunning();
|
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
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
name=NmraDcc
|
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
|
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>
|
maintainer=Alex Shepherd <kiwi64ajs@gmail.com>
|
||||||
sentence=Enables NMRA DCC Communication
|
sentence=Enables NMRA DCC Communication
|
||||||
|
|||||||
Reference in New Issue
Block a user