Update README.md

This commit is contained in:
philippe44
2020-01-20 21:12:14 -08:00
committed by GitHub
parent a763c2d4f7
commit 556f7358e9

View File

@@ -25,7 +25,21 @@ XMT - 3.3V
Use the `squeezelite-esp32-I2S-4MFlash-sdkconfig.defaults` configuration file.
## Configuration
To access NVS, in the webUI, go to credits and select "shows nvs editor". Go into the NVS editor tab to change NFS parameters
To access NVS, in the webUI, go to credits and select "shows nvs editor". Go into the NVS editor tab to change NFS parameters. In syntax description below \<\> means a value while \[\] describe optional parameters.
### I2C
The NVS parameter "i2c_config" set the I2C's gpio needed to enable. Leave it blank to disable I2C usage. Note that on SqueezeAMP, port must be 1. Syntax is
```
sda=<gpio_num>,scl=<gpio_num>,port=<0|1>
```
## Display
The NVS parameter "display_config" sets the parameters for an optional display. Syntax is
```
I2C|SPI,width=<pixels>,height=<pixels>[,address=<i2c_address>][,HFlip][,VFlip]
```
- VFlip and HFlip are optional can be used to change display orientation
### Buttons
Buttons are described using a JSON string with the following syntax
```