node-dht-sensor icon indicating copy to clipboard operation
node-dht-sensor copied to clipboard

Banana Pro support

Open kothique opened this issue 6 years ago • 2 comments

@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 source and References in README.

kothique avatar May 10 '19 03:05 kothique

This might work. I agree we need to test it on an actual Banana Pi board, tough.

momenso avatar May 11 '19 02:05 momenso

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.

kothique avatar May 11 '19 05:05 kothique