added version for direct GPIO button input