Hi!
For fun I made a small testprogram with the AHT10 sensor + SSh1106 display, working fine, I will share if anyone should be interested
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
Aht10 with SSh1106 SPI!
-
- Posts: 616
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 03, 2020 8:25 pm
- Location: Denmark
- Has thanked: 509 times
- Been thanked: 132 times
Aht10 with SSh1106 SPI!
- Attachments
-
- Skærmbillede 2024-01-15 211129.png (1.92 KiB) Viewed 767 times
-
- SSH1106SPI1nano edit.fcfx
- (23.84 KiB) Downloaded 110 times
-
- Valued Contributor
- Posts: 1002
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 106 times
- Been thanked: 519 times
Re: Aht10 with SSh1106 SPI!
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
You can specify the number of digits after the point in FloatToString$
So .str = FloatToString$(value, 1) should do as you wish...
Martin