Conversation
Makes node-dht-sensor compatible with banana pi.
|
This is very good! I was thinking of using wiringPi for sometime now. |
|
Yes I have a Banana Pi and it works like a charm. |
|
Yeah, you're right! It was the pin numbering that is different. |
|
What about my fix? |
|
Why are you using wiringPi, instead of BCM2835 directly? |
|
Because i have an banana pi ;)
|
|
Ok, I understand. You have a fair point and your implementation is good. The problem is that wiringPi not only adds another dependency to the project but also breaks compatibility with existing GPIO numbering convention. Therefore, this change would affect many applications already deployed out there and I really want to avoid this problem. Because the bananaPi also uses the BCM2835 chip it should be possible to access the GPIO in a similar way without requiring wiringPi but so far I did not find any references to this approach. Perhaps a closer look into wiringPi may reveal how to implement this. |
|
Thanks for the changes Xento, based on them I can now run my script without sudo. |
Makes node-dht-sensor compatible with banana pi.