Skip to content

Commit 0940640

Browse files
committed
docs
1 parent 0505933 commit 0940640

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libs/misc/jswrap_qwiic.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ To control the power, use `Qwiic.setPower`, for example: `Jolt.Q0.setPower(true)
5454
"return" : ["JsVar","The same Qwiic object (for call chaining)"]
5555
}
5656
This turns power for the given Qwiic connector on or off. See `Qwiic` for more information.
57+
58+
* If the Qwiic connector has a `fet` pin, it's set to `isOn` (eg. the FET pin is connected low is `isOn`)
59+
* If the Qwiic connector has a `gnd` pin, it's always set to output `0`
60+
* If the Qwiic connector has a `vcc` pin, it's always set to output `isOn`
5761
*/
5862
JsVar *jswrap_jqwiic_setPower(JsVar *parent, bool isOn) {
5963
JsVar *fet = jsvObjectGetChildIfExists(parent, "fet");

0 commit comments

Comments
 (0)