Skip to content

Commit

Permalink
humidity: Add htu21d to controllers
Browse files Browse the repository at this point in the history
Relate-to: #13
Change-Id: I9872317ed9cae7c8a6966da962a71e2eb252ff95
Signed-off-by: Philippe Coval <rzr@users.sf.net>
  • Loading branch information
rzr committed Jan 17, 2020
1 parent 04c4d00 commit 53d7069
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ module.exports.Geolocation = function(options) {
return (new GeolocationSensor(options));
}

module.exports.Humidity = function(options) {
if (!options) {
options = { controller: 'htu21d' };
}

return (new HumiditySensor(options));
}

module.exports.Temperature = function(options) {
if (!options) {
options = { controller: 'bmp085' };
Expand Down

0 comments on commit 53d7069

Please sign in to comment.