Skip to content
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

Added HC-SR04 ultrasonic distance sensor. #143

Merged
merged 2 commits into from
Apr 12, 2020

Conversation

conejoninja
Copy link
Member

No description provided.

Copy link
Member

@aykevl aykevl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Untested, but looks good to me.

hcsr04/hcsr04.go Outdated
echo machine.Pin
}

// New returns a new ultrasonic driver given 2 pins numbers (not pin object)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

given 2 pins numbers (not pin object)

I'm not sure what to make of that. Is this maybe a comment from before the machine.GPIO -> machine.Pin transition?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, fixed. I fixed too the driver were I copied that from

@deadprogram
Copy link
Member

Now squash/merging, thanks @conejoninja

@deadprogram deadprogram merged commit 04be232 into tinygo-org:dev Apr 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants