Skip to content

Telemetrix specific analog_input value report on demand ? #72

Closed Answered by MrYsLab
xAht0x asked this question in Q&A
Discussion options

You must be logged in to vote

@xAht0x Thanks for the question. I will not be implementing a polling method since, in my experience, it leads to more problems than it solves. With the current method, each enabled analog input pin is polled within the Arduino sketch at 19ms per scan. This rate can be modified using the set_analog_scan_interval method. This assures that the likelihood of missing a data change is minimal. Polling the pin from the Python side is inefficient and more likely to lead to missed changes.

The callback method should be as short and as simple as possible. If you wish to supply your callback code, I would be happy to see if any improvements may be made.

If you want to modify Telemetrix, this article

Replies: 5 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by MrYsLab
Comment options

You must be logged in to vote
3 replies
@xAht0x
Comment options

@MrYsLab
Comment options

@xAht0x
Comment options

Comment options

You must be logged in to vote
5 replies
@MrYsLab
Comment options

@xAht0x
Comment options

@MrYsLab
Comment options

@xAht0x
Comment options

@xAht0x
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

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