-
Hi, just need a little info. Example sketch comment on demand on pin 3. Does this mean the metering is updating only after pin 3 is pressed? Does it only use pin 3 or any pin should update the sensing? Does it need to be spesific pin to function? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The pin you specify as See: |
Beta Was this translation helpful? Give feedback.
The pin you specify as
on-demand
is toggled to enable the sensing circuit so that the sensing circuit is activated only when necessary.The operation is inverted respect to your description: the library pilots the pin when you request the sensing, not the other way around.
You can specify any pin with digital capabilities you specify via the
onDemand
function by calling ti once during the setup/initialization phase: any subsequent call tolevel
orvoltage
functions will use the values set by onDemand to perform the sensing.See: