bonjour , quel library DHT utilisez vous ? j'ai un probleme de compilation
Arduino:1.6.10 (Windows 10), Carte : "Arduino Pro or Pro Mini, ATmega328 (3.3V, 8 MHz)"
ATTENTION . Définition sur : 'Uncategorized'
air_temp:73: error: no matching function for call to 'DHT::DHT()'
DHT dht;
^
C:\Users\rsalmon\Documents\Arduino\air_temp\air_temp.ino:73:5: note: candidates are:
In file included from C:\Users\rsalmon\Documents\Arduino\air_temp\air_temp.ino:44:0:
C:\Users\rsalmon\Documents\Arduino\libraries\DHT-sensor-library-master/DHT.h:40:4: note: DHT::DHT(uint8_t, uint8_t, uint8_t)
DHT(uint8_t pin, uint8_t type, uint8_t count=6);
^
C:\Users\rsalmon\Documents\Arduino\libraries\DHT-sensor-library-master/DHT.h:40:4: note: candidate expects 3 arguments, 0 provided
C:\Users\rsalmon\Documents\Arduino\libraries\DHT-sensor-library-master/DHT.h:38:7: note: constexpr DHT::DHT(const DHT&)
class DHT {
^
C:\Users\rsalmon\Documents\Arduino\libraries\DHT-sensor-library-master/DHT.h:38:7: note: candidate expects 1 argument, 0 provided
C:\Users\rsalmon\Documents\Arduino\libraries\DHT-sensor-library-master/DHT.h:38:7: note: constexpr DHT::DHT(DHT&&)
C:\Users\rsalmon\Documents\Arduino\libraries\DHT-sensor-library-master/DHT.h:38:7: note: candidate expects 1 argument, 0 provided
C:\Users\rsalmon\Documents\Arduino\air_temp\air_temp.ino: In function 'void setup()':
air_temp:91: error: 'class DHT' has no member named 'setup'
dht.setup(DHT_DATA_PIN); // set data pin of DHT sensor
^
air_temp:92: error: 'class DHT' has no member named 'getMinimumSamplingPeriod'
if (UPDATE_INTERVAL <= dht.getMinimumSamplingPeriod()) {
^
air_temp:97: error: 'class DHT' has no member named 'getMinimumSamplingPeriod'
sleep(dht.getMinimumSamplingPeriod());
^
C:\Users\rsalmon\Documents\Arduino\air_temp\air_temp.ino: In function 'void loop()':
air_temp:104: error: 'class DHT' has no member named 'readSensor'
dht.readSensor(true);
^
air_temp:107: error: 'class DHT' has no member named 'getTemperature'
float temperature = dht.getTemperature();
^
air_temp:114: error: 'class DHT' has no member named 'toFahrenheit'
temperature = dht.toFahrenheit(temperature);
^
air_temp:131: error: 'class DHT' has no member named 'getHumidity'
float humidity = dht.getHumidity();
^
no matching function for call to 'DHT::DHT()'