4861e592c7
* Start adding back unowifi stuffz
* Uno Wifi compiling
* Fixes for compile arduino unowifi r2
* FlasString and Timers for Uno Wifi
ALL these changes should be portable back to master
* Remove extra timer that was already added
* Changed to EveryTimerB
* Add everytimerb.h
* Cleanup
* Linear address <a> cmd
* Allow lower case keywords
* Add the F define to be on safe side if it is not present in the library core code
* Clean simple Timer interface
Removes overkill files, puts all timer in a single small file. (DCCTimer)
* Timer port
* Timer working
And slow wave command removed
* Correcting non-portables merged from master
* Wave-state machine ( part 11)
* Microtuning waveform
Significant reduction in code paths and call overheads
* Current check cleanup
* Fix no-loco id
Has to handle -1 correctly
* fix wrong format letter
* redo flow through wifisetup again
* version++
* bugfixes wifi setup
* Retry harder for AP mode
* Remove unued if
* DIO2 replacement
Currently for writing signal pins during waveform.
* Drop analogReadFast (see DCCTimer)
AnalogRead speed set in DCCTimer for ease of porting.
Code tidy and diagnostics in MotorDriver
* UNTESTED fast power,brake,fault pins
* Distunguish between in/out of FASTPIN
* minor performance tweaks
* Config comments and example use
* Config/example loading
* IP/PORT on LCD
* Ethernet simulated mac
Plus fixed listening port
* Github SHA
* Committing a SHA
* Fix for nano compile
* Comments and a reliability fix.
* UnoRev2 protection
* PWM pin implementation
* fix wifi setup issue
* Reinstate IP_PORT
* Wifi channel and code cleaninga
* Reduce duplicated F() macros
Compiler isn't as clever as one might expect
* Committing a SHA
* Update config.example.h
Add comment to wifi channel section
* Committing a SHA
* Handle shields with common fault pins (Pololu)
* Committing a SHA
* remove warning
* Committing a SHA
* only do the sha generation on master
* yaml syntax
* Fast SSD1306 OLED driver
Incorporate code from SSD1306Ascii library to speed up OLED screen updates, reduce memory requirements and eliminate some library dependences.
* Fix auto-configure from cold boot.
Add call to Wire.begin().
* Update comment for OLED_DRIVER define.
* Update MotorDrivers.h
Add a motor board definition for using the IBT_2 board for a high current to the main track and keep the Arduino Motor Shield for operating the programming track.
* Committing a SHA
* Fix missing F in motor drivers
* JOIN relay pin
* Swap Join Relay high/low
* Hide WIFI_CONNECT_TIMEOUT
This is not what the config suggests it is... The timeout is in the ES and defaults to 15 seconds. Abandoning it early leads to confused setup.
* Enhance OLED/LCD speed
Write one character or position command per loop entry so as not to hold up the loop. Add support for SH1106 OLED as 132x64 size option.
* Enhance OLED/LCD speed
* Delete comment about OLED on UNO.
* Trim unwanted code
* Handle display types correctly
* Update comments
* Speed up OLED writes
Add new flushDisplay() to end any in-progress I2C transaction. Previously, an redundant command was sent that ended the in-progress transaction but also sent another complete, but unnecessary, transaction.
* Comments and copyright update
* Reduce RAM and flash requirement a few more bytes.
* Move statics into LCDDisplay class, and reduce RAM.
Some state variables were static in LCDDisplay.write(). Moved to class members. Also, types of data items like row, column & character position changed to int8_t to save a few bytes of RAM.
* Type lcdCols and lcdRows to unsigned.
Since lcdCols is normally 128, it needs to be uint8_t, not int8_t.
* remove timeout from user config
* faultpin is common only if it exists ; make code prettier
* Rationalisation of SSD1306 driver
Merge SSD1306AsciiWire.cpp into SSD1306Ascii.cpp and rename SSD1306AsciiWire.h as SSD1306Ascii.h.
Merge allFonts.h into System5x7.h and rename as SSD1306font.h.
Move all SSD1306 files into root folder to facilitate compilation in Arduino IDE.
* Fix some font attributes as const.
* Remove unused initialisation sequences for tiny oled screens
* Add m_ to variables
* Bump up I2C speed
Speed was 100kHz (default). Max for OLEDis 400kHz.
* Revert "Bump up I2C speed"
This reverts commit
|
||
---|---|---|
.github/workflows | ||
.vscode | ||
Release - Architecture Doc | ||
.gitattributes | ||
.gitignore | ||
.travis.yml | ||
CommandDistributor.cpp | ||
CommandDistributor.h | ||
CommandStation-EX.ino | ||
config.example.h | ||
CONTRIBUTING.md | ||
DCC.cpp | ||
DCC.h | ||
DCCEX.h | ||
DCCEXParser.cpp | ||
DCCEXParser.h | ||
DCCTimer.cpp | ||
DCCTimer.h | ||
DCCWaveform.cpp | ||
DCCWaveform.h | ||
defines.h | ||
DIAG.h | ||
EEStore.cpp | ||
EEStore.h | ||
EthernetInterface.cpp | ||
EthernetInterface.h | ||
freeMemory.cpp | ||
freeMemory.h | ||
FSH.h | ||
GITHUB_SHA.h | ||
I2CManager.cpp | ||
I2CManager.h | ||
LCD_Implementation.h | ||
LCD_LCD.h | ||
LCD_NONE.h | ||
LCD_OLED.h | ||
LCDDisplay.cpp | ||
LCDDisplay.h | ||
LICENSE | ||
LiquidCrystal_I2C.cpp | ||
LiquidCrystal_I2C.h | ||
MotorDriver.cpp | ||
MotorDriver.h | ||
MotorDrivers.h | ||
objdump.bat | ||
objdump.sh | ||
Outputs.cpp | ||
Outputs.h | ||
platformio.ini | ||
PWMServoDriver.cpp | ||
PWMServoDriver.h | ||
README.md | ||
release_notes.md | ||
RingStream.cpp | ||
RingStream.h | ||
Sensors.cpp | ||
Sensors.h | ||
SSD1306Ascii.cpp | ||
SSD1306Ascii.h | ||
SSD1306font.h | ||
SSD1306init.h | ||
StringFormatter.cpp | ||
StringFormatter.h | ||
Turnouts.cpp | ||
Turnouts.h | ||
version.h | ||
WifiInboundHandler.cpp | ||
WifiInboundHandler.h | ||
WifiInterface.cpp | ||
WifiInterface.h | ||
WiThrottle.cpp | ||
WiThrottle.h |
What is DCC++ EX?
DCC++ EX is the organization maintaining several codebases that together represent a fully open source DCC system. Currently, this includes the following:
- CommandStation-EX - the latest take on the DCC++ command station for controlling your trains. Runs on an Arduino board, and includes advanced features such as a WiThrottle server implementation, turnout operation, general purpose inputs and outputs (I/O), and JMRI integration.
- exWebThrottle - a simple web based controller for your DCC++ command station.
- BaseStation-installer - an installer executable that takes care of downloading and installing DCC++ firmware onto your hardware setup.
- BaseStation-Classic - the original DCC++ software, packaged in a stable release. No active development, bug fixes only.
A basic DCC++ EX hardware setup can use easy to find, widely avalable Arduino boards that you can assemble yourself.
Both CommandStation-EX and BaseStation-Classic support much of the NMRA Digital Command Control (DCC) standards, including:
- simultaneous control of multiple locomotives
- 2-byte and 4-byte locomotive addressing
- 128-step speed throttling
- Activate/de-activate all accessory function addresses 0-2048
- Control of all cab functions F0-F28
- Main Track: Write configuration variable bytes and set/clear specific configuration variable (CV) bits (aka Programming on Main or POM)
- Programming Track: Same as the main track with the addition of reading configuration variable bytes
What’s in this Repository?
This repository, CommandStation-EX, contains a complete DCC++ EX Commmand Station sketch designed for compiling and uploading into an Arduino Uno, Mega, or Nano. All sketch files are in the folder named CommandStation-EX and its subforlders.
To utilize this sketch, you can use the following:
- (beginner) our automated installer
- (intermediate) download the latest version from the releases page
- (advanced) use git clone on this repository
Not using the installer? Open the file "CommandStation-EX.ino" in the Arduino IDE. Please do not rename the folder containing the sketch code, nor add any files in that folder. The Arduino IDE relies on the structure and name of the folder to properly display and compile the code. Rename or copy config.example.h to config.h. If you do not have the standard setup, you must edit config.h according to the help texts in config.h.
What's new in CommandStation-EX?
- WiThrottle server built in. Connect Engine Driver or WiThrottle clients directly to your Command Station
- WiFi and Ethernet shield support
- No more jumpers or soldering!
- Direct support for all the most popular motor control boards
- I2C Display support
- Improved short circuit detection and automatic reset from an overload
- Current reading, sensing and ACK detection settings in milliAmps instead of just pin readings
- Improved adherence to the NMRA DCC specification
- Complete support for all the old commands and front ends like JMRI
- Railcom cutout (beta)
- Simpler, modular, faster code with an API Library for developers for easy expansion
- New features and functions in JMRI
- Automation (coming soon)
NOTE: DCC-EX is a major rewrite to the code. We started over and rebuilt it from the ground up! For what that means to you, click HERE.
More information
You can learn more at the DCC++ EX website
- November 14, 2020