Skip to content

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