Introduction - If you have any usage issues, please Google them yourself
Figure 4.3.1 below, AT89S51 MCU P1.0-P1.3 next four light-emitting diodes L1-L4, P1.4-P1.7 next four switches K1-K4, programming will switch state reflected in the light-emitting diodes. (Switch closed, the corresponding lights, switch off, the corresponding lights out).