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

Adding read_temperature #5

Merged
merged 5 commits into from
Jul 15, 2020
Merged

Adding read_temperature #5

merged 5 commits into from
Jul 15, 2020

Conversation

dannystaple
Copy link
Contributor

Adding a getter that reads the temperature, based on numbers from the datasheet. The 21's happen to be the same but are separately defined in the formula, so should be separate constants.

It is a read, and not a property since it does have to fetch registers from the device.

Adding a getter that reads the temperature, based on numbers from the datasheet. The 21's happen to be the same but are separately defined in the formula, so should be separate constants. 

It is a read, and not a property since it does have to fetch registers from the device.
@dannystaple
Copy link
Contributor Author

Sounds like I have some tests to write... On it.

@Gadgetoid Gadgetoid merged commit 5f7b324 into pimoroni:master Jul 15, 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.

2 participants