|
@@ -254,9 +254,9 @@ You can define the defaults for jack, spkfault leds at compile time but nvs para
|
|
|
### GPIO expander (not fully validated yet)
|
|
|
It is possible to add GPIO expanders using I2C bus. They should mainly be used for buttons but they can support generic-purpose outputs as well. These additional GPIOs can be numbered starting from an arbitrary value (40 and above as esp32 has GPIO 0..39). Then these new "virtual" GPIOs from (e.g) 100 to 115 can be used in button configuration, set_GPIO or other config settings.
|
|
|
|
|
|
-Each expander (ONLY ONE FOR NOW) can support up to 32 GPIO. To use an expander for buttons, an interrupt must be provided, polling mode is not acceptable. An expander w/o interruption can still be configured, but only output will be usable.
|
|
|
+Each expander can support up to 32 GPIO. To use an expander for buttons, an interrupt must be provided, polling mode is not acceptable. An expander w/o interruption can still be configured, but only output will be usable.
|
|
|
|
|
|
-The parameter "gpio_exp_config" supports the following syntax:
|
|
|
+The parameter "gpio_exp_config" is a semicolon (;) separated list with following syntax for each expander
|
|
|
```
|
|
|
model=<model>,addr=<addr>,[,port=system|dac][,base=<n>|100][,count=<n>|16][,intr=<gpio>]
|
|
|
```
|
|
@@ -267,6 +267,7 @@ model=<model>,addr=<addr>,[,port=system|dac][,base=<n>|100][,count=<n>|16][,intr
|
|
|
- count: number of GPIO of expander (default 16 - might be obsolted if model if sufficient to decide)
|
|
|
- intr: real GPIO to use as interrupt.
|
|
|
|
|
|
+Each expander must be
|
|
|
Note that PWM ("led_brightness" below) is not supported for expanded GPIOs, neither connecting them to a rotary encoder (for speed reason) or high/precise signals like CS, D/C and RST and Ready. Depending on the actual chipset, pullup or pulldown might be supported.
|
|
|
### LED
|
|
|
See §**set_GPIO** for how to set the green and red LEDs. In addition, their brightness can be controlled using the "led_brigthness" parameter. The syntax is
|