-
Notifications
You must be signed in to change notification settings - Fork 89
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
Changing Temp Display and Loop Delay #17
Comments
The error in the temp display requires a fix to The loop delay is the call to sleep(), in |
Temperature is still showing Fahrenheit on Display. Need to display Celsius. U6143_ssd1306Preparationsudo raspi-config Choose Interface Options Clone U6143_ssd1306 librarygit clone https://github.com/UCTRONICS/U6143_ssd1306.git Compilecd U6143_ssd1306/C sudo make clean && sudo make Run
|
i am not sure what this is referring to in your release notes. there is no way to change the unit to Celcius with this C code in this repo. if you see the following function.unsigned char Obaintemperature(void) }if you run "cat /sys/class/thermal/thermal_zone0/temp" the result is in celcius. but then on this line: return temp/1000*1.8+32; it is converted to F, /1000*1.8+32 is the formula to convert C to F. Also there are other If conditions in this file which contain hard coded value of 100. if(temp>=100) 100 degrees in C is boiling ! :) I dont understand this comments on these check ins in your link above, either it is referencing different code that in main branch or developers are confused about Celsius. |
I would also need Celsius instead of Fahrenheit. Anything we can test? |
I'd recommend looking at the PR that's been sitting there, or my own fork, which fixed all this well before they decided to make things worse. |
Dude, you're amazing. I'm gonna dig in. Last night i've spend a couple of hours editing and adding stuff. Still unable to find certain references at to symbols etc. Expect some testing of the PR on this side, thanks. |
To make the display show the temperature in Celsius and the C symbol after it: in U6143_ssd1306/C/ssd1306_i2c.h make these changes in U6143_ssd1306/C/ssd1306_i2c.c change |
How do I change the Temp display from Fahrenheit to Celsius, and is it possible to slow down the rate at which it changes between the different info displays. You barely get time to loot a reading and it switches.
The text was updated successfully, but these errors were encountered: