raspberrypipress / gsw-micropython-on-raspberry-pi-pico-2e

Code and resources for Get Started with MicroPython on Raspberry Pi Pico, 2nd Edition
3 stars 1 forks source link

[Errata]: Chapter 10 - Mistake in Temperature-Formula #8

Open HorstFrevel opened 3 weeks ago

HorstFrevel commented 3 weeks ago

Contact Details

No response

What format of the book has this error? You may select more than one option.

Print

Page Number or Section

125; 128

Detailed description

When explaining I2C and SPI, in the thermometer-code the equation is printed as 'temperature = 25 - (reading - 0.706)/0.001721'. Shouldn't it say '27' instead of '25', both on page 125 and 128?

Furthermore on page 125 you write "the OLED needs characters to display, so we use the str-function...". I can't find the use of the str-function in the code, but you use an f-string.