Introduction - If you have any usage issues, please Google them yourself
5x6 matrix keyboard realization, the basic idea: Progressive scan, the column is set to pull the input port, the first line of the first set low, there has not been pulled out testing, there is no second line is set low, the first line is set high detect the row has not set low, and so on.