Skip to content

Commit

Permalink
Add header file matching library name (#23)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
cmaglie committed Jan 4, 2024
1 parent 4d7a3d6 commit 3deba8a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Grove_Temperature_And_Humidity_Sensor.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#include "DHT.h"

2 changes: 1 addition & 1 deletion examples/DHTtester/DHTtester.ino
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit 3deba8a

Please sign in to comment.