Skip to content

About on demand #38

Closed Answered by rlogiacco
fyrus7 asked this question in Q&A
Discussion options

You must be logged in to vote

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 to level or voltage functions will use the values set by onDemand to perform the sensing.

See:

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rlogiacco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants