gpio input
rest and unittests