Explorar o código

Add header file matching library name (#23)

* Add header file matching library name

This allows the library to be correctly selected using the proper
include file instead of DHT.h (that may lead to the inclusion of another
DHT library).

This is the releavnt WARNING after running arduino-lint:

Linting library in /home/megabug/Workspace/Grove_Temperature_And_Humidity_Sensor
WARNING: No header file found matching library name (Grove_Temperature_And_Humidity_Sensor.h). Best practices are for
         primary header filename to match library name.
         See: https://arduino.github.io/arduino-cli/latest/library-specification/#libraryproperties-file-format
         (Rule LS008)

* Release version 2.0.2
Cristian Maglie %!s(int64=2) %!d(string=hai) anos
pai
achega
3deba8a662

+ 2 - 0
Grove_Temperature_And_Humidity_Sensor.h

@@ -0,0 +1,2 @@
+#include "DHT.h"
+

+ 1 - 1
examples/DHTtester/DHTtester.ino

@@ -1,7 +1,7 @@
 // Example testing sketch for various DHT humidity/temperature sensors
 // Written by ladyada, public domain
 
-#include "DHT.h"
+#include "Grove_Temperature_And_Humidity_Sensor.h"
 
 // Uncomment whatever type you're using!
 //#define DHTTYPE DHT11   // DHT 11

+ 1 - 1
library.properties

@@ -1,5 +1,5 @@
 name=Grove Temperature And Humidity Sensor
-version=2.0.1
+version=2.0.2
 author=Seeed Studio
 maintainer=Seeed Studio <techsupport@seeed.cc>
 sentence=Arduino library to control Grove Temperature And Humidity Sensor, it contains chip DHT11 AM2302.