From 556f7358e9e0976b613d2b193ee74b2250224b82 Mon Sep 17 00:00:00 2001 From: philippe44 Date: Mon, 20 Jan 2020 21:12:14 -0800 Subject: [PATCH] Update README.md --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6bb0e70a..d23c2080 100644 --- a/README.md +++ b/README.md @@ -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=,scl=,port=<0|1> +``` + +## Display +The NVS parameter "display_config" sets the parameters for an optional display. Syntax is +``` +I2C|SPI,width=,height=[,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 ```