I corrected found two bugs in your library:
_the temperature reading is incorrect (systematic error in subdegree, the division by two was not done correctly + trunc, see below for correction)
_one variable, _power_mosfet, was left unitialized under some conditions
This site uses cookies to store information on your computer.
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
Cookie Policy
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.
Access Warning
You do not have the correct permissions to perform this operation.