Posts: 2
Joined: Tue Dec 17, 2019 3:07 am

Lazarus Temp sensor

Sat Dec 21, 2019 7:37 am

I have a DS18B20 temperature sensor, and i connect to Pi3 GPIO4. I can reach it from terminal, i see the temperature value in terminal, but i would like to see it in a Lazarus program. Not FPC. I would like to show it in a TLabel Caption.
Can someone give me a sample programming code to solve this question?

User avatar
Posts: 1
Joined: Tue Jan 14, 2020 5:44 pm

Re: Lazarus Temp sensor

Tue Jan 14, 2020 5:58 pm

Hi Poseidon,

Have a look at the code on this link that I posted a couple of years ago:
http://ipkwena.blogspot.com/2016/01/ras ... r.html?m=1

I may have used a different pin, just follow code.


Return to “Other programming languages”