Updated readme
This commit is contained in:
parent
94d754e63a
commit
f31bf4f7c9
@ -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:
|
||||
|
||||
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:
|
||||
(e.g. assuming MULTI_RELAY_MAX_RELAYS=2)
|
||||
|
||||
MULTI_RELAY_DELAYS 0,0
|
||||
MULTI_RELAY_EXTERNALS false,true
|
||||
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)
|
||||
```cpp
|
||||
#define MULTI_RELAY_PINS 12,18
|
||||
#define MULTI_RELAY_DELAYS 0,0
|
||||
#define MULTI_RELAY_EXTERNALS false,true
|
||||
#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**:
|
||||
|
||||
@ -120,4 +125,7 @@ Have fun - @blazoncek
|
||||
* Added button support.
|
||||
|
||||
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
|
Loading…
Reference in New Issue
Block a user