Aht10 with SSh1106 SPI!

For general Flowcode discussion that does not belong in the other sections.
Post Reply
jgu1
Posts: 615
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 507 times
Been thanked: 132 times

Flowcode v10 Aht10 with SSh1106 SPI!

Post 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
Attachments
Skærmbillede 2024-01-15 211129.png
Skærmbillede 2024-01-15 211129.png (1.92 KiB) Viewed 714 times
SSH1106SPI1nano edit.fcfx
(23.84 KiB) Downloaded 82 times

mnfisher
Valued Contributor
Posts: 956
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 104 times
Been thanked: 509 times

Re: Aht10 with SSh1106 SPI!

Post 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

jgu1
Posts: 615
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 507 times
Been thanked: 132 times

Re: Aht10 with SSh1106 SPI!

Post by jgu1 »

Hi Martin, well well ok, I´ll test your advice, thank you. ;)

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

Post Reply