Page 1 of 1

Aht10 with SSh1106 SPI!

Posted: Mon Jan 15, 2024 8:14 pm
by jgu1
Hi!

For fun I made a small testprogram with the AHT10 sensor + SSh1106 display, working fine, I will share if anyone should be interested :D



But one ting I dont understand, in real world the display show one digit after the comma (my wish), but in simulation it show 2 digit after comma am I doing something wrong?

Br jorgen

Re: Aht10 with SSh1106 SPI!

Posted: Mon Jan 15, 2024 8:43 pm
by mnfisher
Hi Jorgen,

You can specify the number of digits after the point in FloatToString$

So .str = FloatToString$(value, 1) should do as you wish...

Martin

Re: Aht10 with SSh1106 SPI!

Posted: Mon Jan 15, 2024 8:53 pm
by jgu1
Hi Martin, well well ok, I´ll test your advice, thank you. ;)

******Edit, Perfect :D*****