Skip to content
Discussion options

You must be logged in to vote

Thanks for the question. The suggestion is an excellent one but, unfortunately, would not work with the design of Telemetrix4Arduino. Even though the sketch appears to work asynchronously, that is, reporting events as they seem to happen, it is implemented synchronously by polling for data changes.

Supporting the SPI interface as an SPI peripheral would require enabling interrupts. An interrupt can occur at anytime and may interfere with other active interfaces by blocking at a critical moment. For example, the HC-SR04 needs to time its pulses accurately. Receiving an interrupt could disrupt its timing cycle.

Again, thanks for the suggestion, but it is not practical for me to implement.

Replies: 1 comment 3 replies

Comment options

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

@MrYsLab
Comment options

@Se3ri0us
Comment options

Answer selected by Se3ri0us
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