arne48 / tinkerboard_io

Yet another library to use the 40pin header of the Asus Tinker Board.
GNU General Public License v3.0
12 stars 1 forks source link

Make initialization and de-initialization less intrusive #2

Open arne48 opened 6 years ago

arne48 commented 6 years ago

Currently during initialization and after de-initialization the library sets all pins as inputs. This can cause problems when some pins are used by other programs as the IOMUX is changed. Further does the header not provide the same functionalities after the library ran once.

It would be nicer if during initialization all possibly changing parameters of the pins are saved and restored during de-initialization. Further shouldn't all pins be reset on start but just those which are actually used should be configured.