started implemented gpio api, needs testiing