-
I want to use this https://www.arduino.cc/reference/en/language/functions/advanced-io/pulsein/ |
Beta Was this translation helpful? Give feedback.
Answered by
Rahix
Nov 28, 2021
Replies: 1 comment
-
Right now, there doesn't exist any plug-and-play replacement - you'll have to build your own. Depending on what you need, you can repurpose some of the code from the HC-SR04 example. This part in particular uses a timer to measure the response time of he sensor: avr-hal/examples/arduino-uno/src/bin/uno-hc-sr04.rs Lines 36 to 69 in c9b9268 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Rahix
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Right now, there doesn't exist any plug-and-play replacement - you'll have to build your own. Depending on what you need, you can repurpose some of the code from the HC-SR04 example. This part in particular uses a timer to measure the response time of he sensor:
avr-hal/examples/arduino-uno/src/bin/uno-hc-sr04.rs
Lines 36 to 69 in c9b9268