For Code and simulation visit : https://embeddedsolutionsforyou.blogspot.com/2019/12/2-pin-switch-with-pic.html
No download links available.