diff --git a/CommandStation-EX.ino b/CommandStation-EX.ino
index 5355376..2d2bec0 100644
--- a/CommandStation-EX.ino
+++ b/CommandStation-EX.ino
@@ -27,7 +27,8 @@
/*
* © 2020,2021 Chris Harlow, Harald Barth, David Cutting,
* Fred Decker, Gregor Baues, Anthony W - Dayton All rights reserved.
- *
+ *
+ * This file is part of CommandStation-EX
*
* This is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -59,10 +60,18 @@ void setup()
// This is normally Serial but uses SerialUSB on a SAMD processor
Serial.begin(115200);
+ // Responsibility 2: Start the DCC engine.
+ // Note: this provides DCC with two motor drivers, main and prog, which handle the motor shield(s)
+ // Standard supported devices have pre-configured macros but custome hardware installations require
+ // detailed pin mappings and may also require modified subclasses of the MotorDriver to implement specialist logic.
+ // STANDARD_MOTOR_SHIELD, POLOLU_MOTOR_SHIELD, FIREBOX_MK1, FIREBOX_MK1S are pre defined in MotorShields.h
+ DCC::begin(MOTOR_SHIELD_TYPE);
+ DIAG(F("License GPLv3 fsf.org (c) dcc-ex.com"));
+
CONDITIONAL_LCD_START {
// This block is still executed for DIAGS if LCD not in use
LCD(0,F("DCC++ EX v%S"),F(VERSION));
- LCD(1,F("Starting"));
+ LCD(1,F("Lic GPLv3"));
}
// Start the WiFi interface on a MEGA, Uno cannot currently handle WiFi
@@ -75,16 +84,6 @@ void setup()
EthernetInterface::setup();
#endif // ETHERNET_ON
- // Responsibility 3: Start the DCC engine.
- // Note: this provides DCC with two motor drivers, main and prog, which handle the motor shield(s)
- // Standard supported devices have pre-configured macros but custome hardware installations require
- // detailed pin mappings and may also require modified subclasses of the MotorDriver to implement specialist logic.
-
- // STANDARD_MOTOR_SHIELD, POLOLU_MOTOR_SHIELD, FIREBOX_MK1, FIREBOX_MK1S are pre defined in MotorShields.h
-
-
- DCC::begin(MOTOR_SHIELD_TYPE);
-
#if defined(RMFT_ACTIVE)
RMFT::begin();
#endif
diff --git a/DCCEX.h b/DCCEX.h
index 244be19..1504490 100644
--- a/DCCEX.h
+++ b/DCCEX.h
@@ -1,3 +1,24 @@
+/*
+ * (c) 2020 Chris Harlow. All rights reserved.
+ * (c) 2021 Fred Decker. All rights reserved.
+ * (c) 2020 Harald Barth. All rights reserved.
+ *
+ * This file is part of CommandStation-EX
+ *
+ * This is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * It is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with CommandStation. If not, see .
+ */
+
// This include is intended to visually simplify the .ino for the end users.
// If there were any #ifdefs required they are much better handled in here.
diff --git a/DCCTimer.h b/DCCTimer.h
index 0c3274c..b518701 100644
--- a/DCCTimer.h
+++ b/DCCTimer.h
@@ -1,3 +1,23 @@
+/*
+ * (c) 2021 Mike S. All rights reserved.
+ * (c) 2021 Fred Decker. All rights reserved.
+ *
+ * This file is part of CommandStation-EX
+ *
+ * This is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * It is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with CommandStation. If not, see .
+ */
+
#ifndef DCCTimer_h
#define DCCTimer_h
#include "Arduino.h"
diff --git a/EEStore.h b/EEStore.h
index b1d6d31..aaecf4a 100644
--- a/EEStore.h
+++ b/EEStore.h
@@ -1,3 +1,22 @@
+/*
+ * (c) 2020 Chris Harlow. All rights reserved.
+ * (c) 2020 Harald Barth. All rights reserved.
+ *
+ * This file is part of CommandStation-EX
+ *
+ * This is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * It is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with CommandStation. If not, see .
+ */
#ifndef EEStore_h
#define EEStore_h
diff --git a/FSH.h b/FSH.h
index c6d787e..8f5c8d0 100644
--- a/FSH.h
+++ b/FSH.h
@@ -1,3 +1,21 @@
+/*
+ * (c) 2021 Fred Decker. All rights reserved.
+ *
+ * This file is part of CommandStation-EX
+ *
+ * This is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * It is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with CommandStation. If not, see .
+ */
#ifndef FSH_h
#define FSH_h
diff --git a/LCN.h b/LCN.h
index a49745b..9fbcadf 100644
--- a/LCN.h
+++ b/LCN.h
@@ -1,3 +1,21 @@
+/*
+ * (c) 2021 Fred Decker. All rights reserved.
+ *
+ * This file is part of CommandStation-EX
+ *
+ * This is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * It is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with CommandStation. If not, see .
+ */
#ifndef LCN_h
#define LCN_h
#include
diff --git a/MotorDrivers.h b/MotorDrivers.h
index e011b0f..992e1de 100644
--- a/MotorDrivers.h
+++ b/MotorDrivers.h
@@ -1,3 +1,24 @@
+/*
+ * (c) 2020 Chris Harlow. All rights reserved.
+ * (c) 2021 Fred Decker. All rights reserved.
+ * (c) 2020 Harald Barth. All rights reserved.
+ * (c) 2020 Anthony W - Dayton. All rights reserved.
+ *
+ * This file is part of CommandStation-EX
+ *
+ * This is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * It is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with CommandStation. If not, see .
+ */
#ifndef MotorDrivers_h
#define MotorDrivers_h
#include
diff --git a/PWMServoDriver.cpp b/PWMServoDriver.cpp
index 55d9ef5..cbf8432 100644
--- a/PWMServoDriver.cpp
+++ b/PWMServoDriver.cpp
@@ -1,5 +1,21 @@
-
-
+/*
+ * (c) 2020 Chris Harlow. All rights reserved.
+ *
+ * This file is part of CommandStation-EX
+ *
+ * This is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * It is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with CommandStation. If not, see .
+ */
/*!
* @file PWMServoDriver.cpp
*
@@ -16,11 +32,7 @@
*
* @section author Author
* Chris Harlow (TPL)
- * original by Limor Fried/Ladyada (Adafruit Industries).
*
- * @section license License
- *
- * BSD license, all text above must be included in any redistribution
*/
#include
#include "PWMServoDriver.h"
diff --git a/PWMServoDriver.h b/PWMServoDriver.h
index 6bcbae7..aa8dab2 100644
--- a/PWMServoDriver.h
+++ b/PWMServoDriver.h
@@ -1,3 +1,21 @@
+/*
+ * (c) 2020 Chris Harlow. All rights reserved.
+ *
+ * This file is part of CommandStation-EX
+ *
+ * This is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * It is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with CommandStation. If not, see .
+ */
/*!
* @file PWMServoDriver.h
*
diff --git a/SSD1306Ascii.cpp b/SSD1306Ascii.cpp
index c99383a..bd5f006 100644
--- a/SSD1306Ascii.cpp
+++ b/SSD1306Ascii.cpp
@@ -1,6 +1,8 @@
/* Based on Arduino SSD1306Ascii Library, Copyright (C) 2015 by William Greiman
* Modifications (C) 2021 Neil McKechnie
*
+ * This file is part of CommandStation-EX
+ *
* This Library is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
diff --git a/SSD1306Ascii.h b/SSD1306Ascii.h
index e06b4cf..017e742 100644
--- a/SSD1306Ascii.h
+++ b/SSD1306Ascii.h
@@ -1,6 +1,8 @@
/* Based on Arduino SSD1306Ascii Library, Copyright (C) 2015 by William Greiman
* Modifications (C) 2021 Neil McKechnie
*
+ * This file is part of CommandStation-EX
+ *
* This Library is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
diff --git a/SSD1306font.h b/SSD1306font.h
index fd98800..86ce9d4 100644
--- a/SSD1306font.h
+++ b/SSD1306font.h
@@ -1,3 +1,19 @@
+/* Based on Arduino SSD1306Ascii Library, Copyright (C) 2015 by William Greiman
+ * Modifications (C) 2021 Neil McKechnie
+ *
+ * This file is part of CommandStation-EX
+ *
+ * This Library is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This Library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ */
/*
*
* System5x7
diff --git a/SSD1306init.h b/SSD1306init.h
index b861b81..97e6341 100644
--- a/SSD1306init.h
+++ b/SSD1306init.h
@@ -1,6 +1,8 @@
/* Based on Arduino SSD1306Ascii Library, Copyright (C) 2015 by William Greiman
* Modifications (C) 2021 Neil McKechnie
*
+ * This file is part of CommandStation-EX
+ *
* This Library is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
diff --git a/WifiInboundHandler.h b/WifiInboundHandler.h
index 8a25d9c..012c104 100644
--- a/WifiInboundHandler.h
+++ b/WifiInboundHandler.h
@@ -1,3 +1,22 @@
+/*
+ * (c) 2021 Fred Decker. All rights reserved.
+ * (c) 2020 Chris Harlow. All rights reserved.
+ *
+ * This file is part of CommandStation-EX
+ *
+ * This is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * It is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with CommandStation. If not, see .
+ */
#ifndef WifiInboundHandler_h
#define WifiInboundHandler_h
diff --git a/config.example.h b/config.example.h
index b4751b5..364274e 100644
--- a/config.example.h
+++ b/config.example.h
@@ -1,7 +1,23 @@
-/**********************************************************************
+/*
+ * COPYRIGHT (c) 2020 Fred Decker
+ *
+ * This file is part of CommandStation-EX
+ *
+ * This is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * It is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with CommandStation. If not, see .
+ */
-config.h
-COPYRIGHT (c) 2020 Fred Decker
+/**********************************************************************
The configuration file for DCC-EX Command Station