Skip to content

Python3 compatibility #23

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
Aug 20, 2019
Merged

Python3 compatibility #23

merged 3 commits into from
Aug 20, 2019

Conversation

topshed
Copy link
Contributor

@topshed topshed commented Aug 3, 2019

Added decoding of bytestring to give Python3 compatibility.

Alternatively you could replace the get_cpu_temperature() function with

from gpiozero import CPUTemperature
cpu = CPUTemperature(min_temp=50, max_temp=90)

topshed added 3 commits August 3, 2019 20:43
added decoding of bytestring to provide Python3 compatibility.
added decoding of bytestring to provide Python3 compatibility.
added decoding of bytestring to provide Python3 compatibility.
@Gadgetoid
Copy link
Member

Thank you. I think this will now be superseded by #31 but thanks for bringing it up. I'll aim to test/merge this PR, followed by #24, #25 and my own to preserve your respective contributions.

@Gadgetoid Gadgetoid merged commit dc633df into pimoroni:master Aug 20, 2019
LionsPhil added a commit to LionsPhil/bme280-python that referenced this pull request Apr 12, 2021
This ports the changes from pimoroni/enviroplus-python#23 , where this same function is copied.
LionsPhil added a commit to LionsPhil/bme280-python that referenced this pull request Feb 8, 2022
This ports the changes from pimoroni/enviroplus-python#23 , where this same function is copied.
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