From 655c17fb2951dc83d65ac77ec6b47248aa9ab4ff Mon Sep 17 00:00:00 2001 From: philippe44 Date: Wed, 8 Nov 2023 11:36:29 -0800 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9ecbe7e51..b3e460dac 100644 --- a/README.md +++ b/README.md @@ -193,7 +193,7 @@ So far, TAS57xx, TAS5713, AC101, WM8978 and ES8388 are recognized models where t : [ {"reg":,"val":,"mode":|"or"|"and"}, ... {{"reg":,"val":,"mode":|"or"|"and"} ], ... } ``` -Where `` is one of init, poweron, poweroff, speakeron, speakeroff, headseton, headsetoff and `` can be reg, val, delay, gpio (see below) +Where `` is one of init, poweron, poweroff, speakeron, speakeroff, headseton, headsetoff and `` can be reg, delay or gpio (see below) This is standard JSON notation, so if you are not familiar with it, Google is your best friend. Be aware that the '...' means you can have as many entries as you want, it's not part of the syntax. Every section is optional, but it does not make sense to set i2c in the 'dac_config' parameter and not setting anything here. The parameter 'mode' allows to *or* the register with the value or to *and* it. Don't set 'mode' if you simply want to write. The 'val parameter can be an array [v1, v2,...] to write a serie of bytes in a single i2c burst (in that case 'mode' is ignored). **Note that all values must be decimal**. You can use a validator like [this](https://jsonlint.com) to verify your syntax