Loading...
Pages: 1 2 [3]   Go Down
Author Topic: yet another DHT11 Class for Arduino  (Read 6702 times)
0 Members and 2 Guests are viewing this topic.
Offline Offline
Edison Member
*
Karma: 9
Posts: 1000
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Robtillaart,  Have you thought about using the (:source lang=c:) and (:sourcend:) for your code in the playground?
Logged

Netherlands
Offline Offline
Tesla Member
***
Karma: 91
Posts: 9444
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Krodal,

I have updated the DHT lib pages,  it looks def. better!

Thanks,


Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

Netherlands
Offline Offline
Tesla Member
***
Karma: 91
Posts: 9444
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

update to version 0.4.1 - http://arduino.cc/playground/Main/DHT11Lib

- added #define error codes
- use these in sample application

makes the code more readable, no functionality change.
« Last Edit: May 19, 2012, 03:18:21 am by robtillaart » Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
I am trying out your DHT11 librarys using both dht11_test1.pde and DHT11LIB_VERSION "0.4.1" but keep getting this error:

dht11\dht11.cpp.o: In function `dht11::read(int)':
C:\Program Files\Arduino-1.0\libraries\dht11/dht11.cpp:28: multiple definition of `dht11::read(int)'
dht11.cpp.o:C:\DOCUME~1\DrWil\LOCALS~1\Temp\build8921908579828605482.tmp/dht11.cpp:28: first defined here

Is dht11::read(int) being redefined in the temp build folder?

Arduino software version 1.0.1
Arduino hardware version Duemilanove w/ ATmega328

Cheers
Logged

Offline Offline
Edison Member
*
Karma: 9
Posts: 1000
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am trying out your DHT11 librarys using both dht11_test1.pde and DHT11LIB_VERSION "0.4.1" but keep getting this error

It is running fine with me.
Arduino 1.0.1.
The three files (not as library), and changed one thing in the example file:
Code:
#include <dht11.h>
into
Code:
#include "dht11.h"
Logged

Pages: 1 2 [3]   Go Up
Print
 
Jump to: