mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-27 01:56:14 +01:00
162 lines
8.7 KiB
C
162 lines
8.7 KiB
C
#ifndef version_h
|
|
#define version_h
|
|
|
|
#include "StringFormatter.h"
|
|
|
|
|
|
#define VERSION "4.2.18"
|
|
// 4.2.18 - I2C Multiplexer support through Extended Addresses,
|
|
// added for Wire, 4209 and AVR I2C drivers.
|
|
// - I2C retries when an operation fails.
|
|
// - I2C timeout handling and recovery completed.
|
|
// - I2C SAMD Driver Read code completed.
|
|
// - PCF8575 I2C GPIO driver added.
|
|
// - EX-RAIL ANOUT function for triggering analogue
|
|
// HAL drivers (e.g. analogue outputs, DFPlayer, PWM).
|
|
// - EX-RAIL SCREEN function for writing to screens other
|
|
// than the primary one.
|
|
// - Installable HALDisplay Driver, with support
|
|
// for multiple displays.
|
|
// - Layered HAL Drivers PCA9685pwm and Servo added for
|
|
// native PWM on PCA9685 module and
|
|
// for animations of servo movement via PCA9685pwm.
|
|
// This is intended to support EXIOExpander and also
|
|
// replace the existing PCA9685 driver.
|
|
// - Add <D HAL RESET> to reinitialise failed drivers.
|
|
// - Add UserAddin facility to allow a user-written C++ function to be
|
|
// declared in myHal.cpp, to be called at a user-specified frequency.
|
|
// - Add ability to configure clock speed of PCA9685 drivers
|
|
// (to allow flicker-free LED control).
|
|
// - Improve stability of VL53L0X driver when XSHUT pin connected.
|
|
// - Enable DCC high accuracy mode for STM32 on standard motor shield (pins D12/D13).
|
|
// - Incorporate improvements to ADC scanning performance (courtesy of HABA).
|
|
// 4.2.17 LCN bugfix
|
|
// 4.2.16 Move EX-IOExpander servo support to the EX-IOExpander software
|
|
// 4.2.15 Add basic experimental PWM support to EX-IOExpander
|
|
// EX-IOExpander 0.0.14 minimum required
|
|
// 4.2.14 STM32F4xx fast ADC read implementation
|
|
// 4.2.13 Broadcast power for <s> again
|
|
// 4.2.12 Bugfix for issue #299 TurnoutDescription NULL
|
|
// 4.2.11 Exrail IFLOCO feature added
|
|
// 4.2.10 SIGNAL/SIGNALH bug fix as they were inverted
|
|
// IO_EXIOExpander.h input speed optimisation
|
|
// 4.2.9 duinoNodes support
|
|
// 4.2.8 HIGHMEM (EXRAIL support beyond 64kb)
|
|
// Withrottle connect/disconnect improvements
|
|
// Report BOARD_TYPE if provided by compiler
|
|
// 4.2.7 FIX: Static IP addr
|
|
// FIX: Reuse WiThrottle list entries
|
|
// 4.2.6 FIX: Remove RAM thief
|
|
// FIX: ADC port 8-15 fix
|
|
// 4.2.5 Make GETFLASHW code more universal
|
|
// FIX: Withrottle roster index
|
|
// Ethernet start improvement and link detection
|
|
// 4.2.4 ESP32 experimental BT support
|
|
// More DC configurations possible and lower frequency
|
|
// Handle decoders that do not ack at write better
|
|
// 4.2.3 Bugfix direction when togging between MAIN and DC
|
|
// Bugfix return fail when F/f argument out of range
|
|
// More error checking for out of bounds motor driver current trip limit
|
|
// 4.2.2 ESP32 beta
|
|
// JOIN/UMJOIN on ESP32
|
|
// 4.2.1 ESP32 alpha
|
|
// Ready for alpha test on ESP32. Track switching with <=> untested
|
|
// Send DCC signal on MAIN
|
|
// Detects ACK on PROG
|
|
// 4.2.0 Track Manager additions:
|
|
// Broadcast improvements to separate <> and Withrottle responses
|
|
// Float eliminated saving >1.5kb PROGMEM and speed.
|
|
// SET_TRACK(track,mode) Functions (A-H, MAIN|PROG|DC|DCX|OFF)
|
|
// New DC track function and DCX reverse polarity function
|
|
// TrackManager DCC & DC up to 8 Districts Architecture
|
|
// Automatic ALIAS(name)
|
|
// Command Parser now accepts Underscore in Alias Names
|
|
// 4.1.1 Bugfix: preserve turnout format
|
|
// Bugfix: parse multiple commands in one buffer string correct
|
|
// Bugfix: </> command signal status in Exrail
|
|
// 4.1.0 ...
|
|
//
|
|
// 4.0.2 EXRAIL additions:
|
|
// ACK defaults set to 50mA LIMIT, 2000uS MIN, 20000uS MAX
|
|
// myFilter automatic detection (no need to call setFilter)
|
|
// FIX negative route ids in WIthrottle problem.
|
|
// IFRED(signal_id), IFAMBER(signal_id), IFGREEN(signal_id)
|
|
// </RED signal_id> </AMBER signal_id> </GREEN signal_id> commands
|
|
// <t cab> command to obtain current throttle settings
|
|
// JA, JR, JT commands to obtain route, roster and turnout descriptions
|
|
// HIDDEN turnouts
|
|
// PARSE <> commands in EXRAIL
|
|
// VIRTUAL_TURNOUT
|
|
// </KILL ALL> and KILLALL command to stop all tasks.
|
|
// FORGET forgets the current loco in DCC reminder tables.
|
|
// Servo signals (SERVO_SIGNAL)
|
|
// High-On signal pins (SIGNALH)
|
|
// Wait for analog value (ATGTE, ATLT)
|
|
// 4.0.1 Small EXRAIL updates
|
|
// EXRAIL BROADCAST("msg")
|
|
// EXRAIL POWERON
|
|
// 4.0.0 Major functional and non-functional changes.
|
|
// Engine Driver "DriveAway" feature enhancement
|
|
// 'Discovered Server' multicast Dynamic Network Server (mDNS) displays available WiFi connections to a DCC++EX Command Station
|
|
// New EX-RAIL "Extended Railroad Automation Instruction Language" automation capability.
|
|
// EX-Rail Function commands for creating Automation, Route & Sequence Scripts
|
|
// EX-RAIL “ROSTER” Engines Id & Function key layout on Engine Driver or WiThrottle
|
|
// EX-RAIL DCC++EX Commands to Control EX-RAIL via JMRI Send pane and IDE Serial monitors
|
|
// New JMRI feature enhancements;
|
|
// Reads DCC++EX EEPROM & automatically uploades any Signals, DCC Turnouts, Servo Turnouts, Vpin Turnouts , & Output pane
|
|
// Turnout class revised to expand turnout capabilities, new commands added.
|
|
// Provides for multiple additional DCC++EX WiFi connections as accessory controllers or CS for a programming track when Motor Shields are added
|
|
// Supports Multiple Command Station connections and individual tracking of Send DCC++ Command panes and DCC++ Traffic Monitor panes
|
|
// New HAL added for I/O (digital and analogue inputs and outputs, servos etc)
|
|
// Automatically detects & connects to supported devices included in your config.h file
|
|
// Support for MCP23008, MCP23017 and PCF9584 I2C GPIO Extender modules.
|
|
// Support for PCA9685 PWM (servo) control modules.
|
|
// Support for analogue inputs on Arduino pins and on ADS111x I2C modules.
|
|
// Support for MP3 sound playback via DFPlayer module.
|
|
// Support for HC-SR04 Ultrasonic range sensor module.
|
|
// Support for VL53L0X Laser range sensor module (Time-Of-Flight).
|
|
// Added <D HAL SHOW> diagnostic command to show configured devices
|
|
// New Processor Support added
|
|
// Compiles on Nano Every and Teensy
|
|
// Native non-blocking I2C drivers for AVR and Nano architectures (fallback to blocking Wire library for other platforms).
|
|
// Can disable EEPROM code
|
|
// EEPROM layout change - deletes EEPROM contents on first start following upgrade.
|
|
// Output class now allows ID > 255.
|
|
// Configuration options to globally flip polarity of DCC Accessory states when driven from <a> command and <T> command.
|
|
// Increased use of display for showing loco decoder programming information.
|
|
// Can define border between long and short addresses
|
|
// Turnout and accessory states (thrown/closed = 0/1 or 1/0) can be set to match RCN-213
|
|
// Bugfix: one-off error in CIPSEND drop
|
|
// Bugfix: disgnostic display of ack pulses >32kus
|
|
// Bugfix: Current read from wrong ADC during interrupt
|
|
// 3.2.0 Development Release Includes all of 3.1.1 thru 3.1.7 enhancements
|
|
// 3.1.7 Bugfix: Unknown locos should have speed forward
|
|
// 3.1.6 Make output ID two bytes and guess format/size of registered outputs found in EEPROM
|
|
// 3.1.5 Fix LCD corruption on power-up
|
|
// 3.1.4 Refactor OLED and LCD drivers and remove unused code
|
|
// 3.1.3 Add a loop delay to give more time for sensing an Ethernet cable connection
|
|
// 3.1.2 Eliminate wait after write when prog is joined or prog power is off
|
|
// 3.1.1 SH1106 OLED Display Offset Fix
|
|
// 3.0.16 Ignore CV1 bit 7 read rejected by decoder when identifying loco id.
|
|
// 3.0.15 only send function commands once, not 4 times
|
|
// 3.0.14 gap in ack tolerant fix, prog track power management over join fix.
|
|
// 3.0.13 Functions>127 fix
|
|
// 3.0.12 Fix HOSTNAME function for STA mode for WiFi
|
|
// 3.0.11 28 speedstep support
|
|
// 3.0.10 Teensy Support
|
|
// 3.0.9 rearranges serial newlines for the benefit of JMRI.
|
|
// 3.0.8 Includes <* *> wraps around DIAGs for the benefit of JMRI.
|
|
// 3.0.7 Includes merge from assortedBits (many changes) and ACK manager change for lazy decoders
|
|
// 3.0.6 Includes:
|
|
// Fix Bug that did not let us transmit 5 byte sized packets like PoM
|
|
// 3.0.5 Includes:
|
|
// Fix Fn Key startup with loco ID and fix state change for F16-28
|
|
// 3.0.4 Includes:
|
|
// Wifi startup bugfixes
|
|
// 3.0.3 Includes:
|
|
// <W addr> command to write loco address and clear consist
|
|
// <R> command will allow for consist address
|
|
// Startup commands implemented
|
|
|
|
#endif
|