rkaczorek / astroberry-diy

Astroberry-DIY provides INDI drivers for Raspberry Pi devices such us Astroberry Focuser - stepper motor driver, Astroberry Board - power switch board for up to 4 devices, Astroberry System - operating system status.
GNU General Public License v3.0
32 stars 16 forks source link

support nanopi-m4 #9

Closed dragonlost closed 4 years ago

dragonlost commented 5 years ago

hello.

I would like to use to run your indi driver on my nanopi-m4. There is a library wriringpi that works pretty well. Unfortunately I have no gpio accessible via wiring pi on the pins 29, 31, 33 and 35 (the pins of the part relay)

On the other hand I have pins 8, 10, 12, 22 and 26 which are accessible (with numbers 15, 16, 1, 6 and 11 on wiring pi).

dragonlost commented 5 years ago

Hello.

How should I modify the program to change the pins used for the relay part?

rkaczorek commented 5 years ago

Pin mapping for wiringpi is defined in lines 52-55 of rpi_brd.cpp Possibly you can use the pin numbers as you already identified in the first post.

rkaczorek commented 4 years ago

PIN mapping is now configurable from UI