winlinvip / SimpleDHT

Simple, Stable and Fast Arduino Temp & Humidity Sensors for DHT11 and DHT22. http://learn.adafruit.com/dht
MIT License
144 stars 61 forks source link

Can we make setPin() public? #41

Closed gregg-cbs closed 3 years ago

gregg-cbs commented 4 years ago

Hey,

Thanks for the lib. I am interfacing your lib with my own class so I can have all temperature logic in one place.

Doing this: SimpleDHT11 dht11(2);

Stops me from being able to do this:

class Temperature{
    public:
      void setChannel(int _channel){
        channel = _channel;
        dht11.setPin(_channel);
      }
    ...

Is there a another way to instantiate this?

winlinvip commented 3 years ago

Done