DCC-EX / CommandStation-EX

EX-CommandStation firmware from DCC-EX. Includes support for WiFi and a standalone WiThrottle server. A complete re-write of the original DCC++.
https://dcc-ex.github.io/
GNU General Public License v3.0
155 stars 107 forks source link

Option to disable default expanders #246

Closed peteGSX closed 1 year ago

peteGSX commented 2 years ago

It would be nice to have a way to disable the default MCP23017 and PCA9685 expanders, without compromising the Conductor user experience of having these available by default.

Something like:

Commented out in config.h:

// #define DISABLE_DEFAULT_EXPANDERS

Or some such, and in IODevice.cpp it's simply a matter of adding this for each one:

ifndef DISABLE_DEFAULT_EXPANDERS

create...

endif

peteGSX commented 1 year ago

Not required, PORTX_HAL branch has this capability built in by defining HAL devices in myAutomation.h instead, which will override default objects.