Skip to content

initial commit of library & code #1

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

Merged
merged 3 commits into from
Dec 5, 2018
Merged

Conversation

ladyada
Copy link
Member

@ladyada ladyada commented Oct 28, 2018

these uart modules may be easier for some situations where you cant measure precise pulses

@ladyada ladyada requested a review from a team October 28, 2018 05:11
Copy link

@caternuson caternuson left a comment

Choose a reason for hiding this comment

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

Property names and units check with sensor design guide. Travis is just complaining about TODO's. Just a question in review.

Also - is this something in the shop? do you want any hardware testing done?

data = self._uart.read(2) # 2 bytes return for distance
if len(data) != 2:
raise RuntimeError("Did not receive distance response")
dist = (data[1] + (data[0] << 8)) / 10

Choose a reason for hiding this comment

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

Don't know sensor details, but should this be an |?

Copy link
Member Author

Choose a reason for hiding this comment

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

  • and | are the same when dealing with shifted bytes :)

@ladyada
Copy link
Member Author

ladyada commented Nov 6, 2018

no testing needed yet - not in shop, so no URLs yet - coming soon!

@ladyada ladyada merged commit bbd0aec into adafruit:master Dec 5, 2018
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.

2 participants