Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4834

C/C++ • Re: DHT11 code works with python but not C++

$
0
0
My python code for interfacing with a DHT11 works fine, but not the C++ "equivalent".
Not sure if this is what you want to read, you will be better off using the AHT10 and talk to it on i2c. One wire was a solution back in the days when we ran 8bit uC. Now days with a linux box all you are doing with one wire is choking your board's resources. If you don't have a kernel space driver you are wasting precious clock cycles bit banging. I know for first hand fact the AHT10 works coded in c++ / i2c / you will have to use ioctl.

Statistics: Posted by foxsquirrel — Sat Aug 03, 2024 4:08 pm



Viewing all articles
Browse latest Browse all 4834

Trending Articles