start gpio control thread