node-dht-sensor
node-dht-sensor copied to clipboard
Banana Pro support
@momenso, do you think it should work?
There's a modification of bcm2835 that should work with Banana Pro: https://github.com/LeMaker/bcm2835_BP. The API is the same, so I simply choose which header to include and which library to link to depending on banana_pro flag.
I just have no idea what these things (from dht-sensor.cpp) are all about and if they are compatible with Banana Pro:
#define BCM2708_PERI_BASE 0x20000000
#define GPIO_BASE (BCM2708_PERI_BASE + 0x200000)
Also we need to find someone with Banana Pro for testing.
Building
$ npm install --banana_pro=true
or
$ node-gyp configure -- -Dbanana_pro=true
$ node-gyp build
Things left to do
- [ ] Test it on a real Banana Pro.
- [ ] Update
Reference for building from sourceandReferencesinREADME.
This might work. I agree we need to test it on an actual Banana Pi board, tough.
Seems like Banana Pro is a fake Banana Pi, and Lemaker infringes Banana Pi's trademark or something. I don't believe those "intellectual property" games are of any matter to us, and we still can support it, if someone gets a hold of the board.