-
Notifications
You must be signed in to change notification settings - Fork 644
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I wanted to get the ultrasonic distance, but I couldn't make it #3544
Comments
@tangjie133 have you tried /beta? |
Yes, the data returned by V1 version is continuous. Although V2 version can return data, but the returned data is not continuous, it will return "0" |
v2 fix in #3642 |
Fixed @tangjie133 please validate. |
Using the same code to read ultrasound is still problematic, as is infrared. |
@tangjie133 did you try /beta? |
yes |
CODAL v0.2.24 has now been released to https://makecode.microbit.org/stable can you check here to see if this still reproduces @tangjie133 ? |
@tangjie133 We have reports from people using the extension that this is now fixed. I will close here, but feel free to re-open if you still see issues. |
To Reproduce
I want to calculate the ultrasonic return distance by obtaining the pin high and low level changes, but the returned data is not correct,How long can this problem be fixed?
Expected behavior:
Serial printing pulse duration,This only works on V1 and fails on V2.
Screenshots:
link:https://makecode.microbit.org/_Joc6xW1jy2Ls
The text was updated successfully, but these errors were encountered: