reuterbal / photobooth

A flexible photobooth software
GNU Affero General Public License v3.0
312 stars 158 forks source link

Asus TinkerBoard support #143

Open reuterbal opened 5 years ago

reuterbal commented 5 years ago

I was trying to use the software on a Asus TinkerBoard It is not working since gpizero does not exist for the tinker board.

Do you think it would be possible to change from gpiozero back to RPi.GPIO? I think like this it would be more easy to replace for another GPIO system like the one from ASUS

Originally posted by @chino-lu in https://github.com/reuterbal/photobooth/issues/62#issuecomment-506211563

reuterbal commented 5 years ago

Please do not hijack existing issues for other questions. Especially not closed ones.

I don't have time to change to a different GPIO library. However, if RPI.GPIO can be replaced by ASUS.GPIO as a drop-in replacement, it should be fairly easy to provide a matching pin factory for gpiozero.

See https://gpiozero.readthedocs.io/en/stable/api_pins.html for changing the pin factory.

I would try to copy rpigpio.py and use it to implement a pin factory using ASUS.GPIO. Then choose this as the pin factory.