Introduction - If you have any usage issues, please Google them yourself
Function: Reads keys, control LED flashes. First register PINSEL pin assignment to 0, set the pin connections GPIO. And then scan button, wait until a key is pressed, the program began flashing LED. In order to make a wide variety of LED flashing result, its design a table LED_TBL [], and continue to call for P0 [7: 0] This 8 is set to output an I/O port for a set or cleared get water lights pattern effect. When the button is pressed pick P0.14, LED flashing light will return to the original state all off, and then continue to follow the other fancy flashing.