STM8S Demo external interrupt using button KY-004 key Working example compiled using SDCC on Arch linux.