https://aticleworld.com/interfacing-of-switch-and-led-using-the-8051/
Interfacing of switch and led using the 8051