Introduction - If you have any usage issues, please Google them yourself
8051 P1 port assumed external matrix keyboard, matrix keyboard column line (Y0-Y3) sister SCM P1.0-P1.3, while southbound (X0-X3) received P1.4-P1.7. P2.0 connected light-emitting diodes. According to the size of the key to make the appropriate number of LED flashes.