sparkfun / pxt-weather-bit

MakeCode package for the SparkFun weather:bit board - beta
https://makecode.microbit.org/pkg/sparkfun/pxt-weather-bit
12 stars 22 forks source link

Pressure problem #26

Open adamujhazi opened 2 years ago

adamujhazi commented 2 years ago

Hello,

probably you have changed something, but in version 0.0.19 pressure is not displaying correctly. In version 0.0.12 it was working smoothly.

Raw value from v0.0.12 (weatherbit.pressure()): 26479239 Formated value from v0.0.12 (Math.idiv(weatherbit.pressure(), 25600)): 1034 hPa

Raw value from v0.0.19 (weatherbit.pressure()): 49921 Formated value from v0.0.19 (Math.idiv(weatherbit.pressure(), 25600)): 1 hPa

jeritt commented 1 year ago

I know this is an old thread, but I'm having similar problems with pressure as the user above. Confirmed on multiple boards. Works fine in old extension version 0.0.12 (what is used in the Sparkfun tutorials). I don't know TS well enough to submit a fix...

UPDATE: My workaround is just using another BME280 extension.