Black Lives Matter - Action and Equality. ... Adafruit is open and shipping.
0

Convert C byte to Python string
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Re: Convert C byte to Python string

by MakerMelissa on Thu May 28, 2020 2:41 pm

Great to hear.

I'm looking at the function header at https://github.com/adafruit/Adafruit_Ci ... ts.py#L158

It looks like you may need to specify a decimal parameter, maybe something like:
Code: Select all | TOGGLE FULL SIZE
print (curtempf, decimal=1)

MakerMelissa
 
Posts: 146
Joined: Wed Jun 05, 2013 2:10 am

Re: Convert C byte to Python string

by Seras on Thu May 28, 2020 3:01 pm

That worked! Thank you so much!

Seras
 
Posts: 8
Joined: Mon May 25, 2020 10:14 pm

Re: Convert C byte to Python string

by MakerMelissa on Thu May 28, 2020 3:35 pm

Excellent!

MakerMelissa
 
Posts: 146
Joined: Wed Jun 05, 2013 2:10 am

Please be positive and constructive with your questions and comments.