mirror of
https://github.com/niesteszeck/idDHT11.git
synced 2025-03-15 04:27:29 +03:00
example comments improvements
This commit is contained in:
parent
2358dd9746
commit
56cfe7e0bd
@ -12,7 +12,7 @@ int idDHT11pin = 2; //Digital pin for comunications
|
||||
int idDHT11intNumber = 0; //interrupt number (must be the one that use the previus defined pin (see table above)
|
||||
|
||||
//declaration
|
||||
void dht11_wrapper();
|
||||
void dht11_wrapper(); // must be declared before the lib initialization
|
||||
|
||||
// Lib instantiate
|
||||
idDHT11 DHT11(idDHT11pin,idDHT11intNumber,dht11_wrapper);
|
||||
@ -25,6 +25,8 @@ void setup()
|
||||
Serial.println(IDDHT11LIB_VERSION);
|
||||
Serial.println("---------------");
|
||||
}
|
||||
// This wrapper is in charge of calling
|
||||
// mus be defined like this for the lib work
|
||||
void dht11_wrapper() {
|
||||
DHT11.isrCallback();
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ int idDHT11pin = 2; //Digital pin for comunications
|
||||
int idDHT11intNumber = 0; //interrupt number (must be the one that use the previus defined pin (see table above)
|
||||
|
||||
//declaration
|
||||
void dht11_wrapper();
|
||||
void dht11_wrapper(); // must be declared before the lib initialization
|
||||
|
||||
// Lib instantiate
|
||||
idDHT11 DHT11(idDHT11pin,idDHT11intNumber,dht11_wrapper);
|
||||
@ -27,6 +27,8 @@ void setup()
|
||||
Serial.println(IDDHT11LIB_VERSION);
|
||||
Serial.println("---------------");
|
||||
}
|
||||
// This wrapper is in charge of calling
|
||||
// mus be defined like this for the lib work
|
||||
void dht11_wrapper() {
|
||||
DHT11.isrCallback();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user