start implementation of edge detection for gpio