rszimm / sprinklers_pi

Sprinkling System Control Program for the Raspberry Pi
GNU General Public License v2.0
310 stars 100 forks source link

Compatibility with RedBear IoT HAT / other GPIO users #102

Closed mikerob closed 6 years ago

mikerob commented 6 years ago

I was trying to run both sprinklers_pi and the RedBear IoT HAT. Initially it would basically hang due to (it turns out) an IRQ conflict / overlap with pins being used by the HAT and pins being set to outputs by sprinklers_pi.

I was able to edit core.cpp to re-assign the zones to only the free pins, and edit settings.h to reduce the number of zones accordingly. A comment in core.cpp to note the location of MAX_ZONES (and the need to change it) would be handy.

It would be handy if there were a way to do that config via the web interface. Alternately, at least this may help others who hit the same problem.

nhorvath commented 6 years ago

It's not likely that ZoneToIOMap will be moved to a configuration.