Updated readme

This commit is contained in:
Chris Burrows 2023-11-10 17:36:48 +00:00
parent 94d754e63a
commit f31bf4f7c9

View File

@ -49,16 +49,21 @@ You can override the default maximum number of relays (which is 4) by defining M
Some settings can be defined (defaults) at compile time by setting the following defines: Some settings can be defined (defaults) at compile time by setting the following defines:
MULTI_RELAY_HA_DISCOVERY true or false ```cpp
// enable or disable HA discovery for externally controlled relays
#define MULTI_RELAY_HA_DISCOVERY true
```
The following definitions should be a list of values (maximum number of entries is MULTI_RELAY_MAX_RELAYS) that will be applied to the relays in order: The following definitions should be a list of values (maximum number of entries is MULTI_RELAY_MAX_RELAYS) that will be applied to the relays in order:
(e.g. assuming MULTI_RELAY_MAX_RELAYS=2) (e.g. assuming MULTI_RELAY_MAX_RELAYS=2)
MULTI_RELAY_DELAYS 0,0 ```cpp
MULTI_RELAY_EXTERNALS false,true #define MULTI_RELAY_PINS 12,18
MULTI_RELAY_INVERTS false,false #define MULTI_RELAY_DELAYS 0,0
#define MULTI_RELAY_EXTERNALS false,true
These can be set via your platformio_override.ini file or as #define in your my_config.h (remember to set WLED_USE_MY_CONFIG in your platformio_override.ini) #define MULTI_RELAY_INVERTS false,false
```
These can be set via your `platformio_override.ini` file or as `#define` in your `my_config.h` (remember to set `WLED_USE_MY_CONFIG` in your `platformio_override.ini`)
Example **usermods_list.cpp**: Example **usermods_list.cpp**:
@ -120,4 +125,7 @@ Have fun - @blazoncek
* Added button support. * Added button support.
2023-05 2023-05
* Added support for PCF8574 I2C port expander (multiple) * Added support for PCF8574 I2C port expander (multiple)
2023-11
* @chrisburrows Added support for compile time defaults for setting DELAY, EXTERNAL, INVERTS and HA discovery