Digital tube (51 single chip microcomputer, a total of anode,
(1) when the button press, digital tube display the corresponding key number 1602 LCD display "key num" at the same time using a serial port to the computer terminal to send "num keys on the press," number of including a num buttons, button reads to use external interrupt 1, button 2 read the use of external interrupt 2, read the rest of the six key using a query way,
(2) when I saw the computer terminal to receive the appropriate information, using a serial port to the single chip microcomputer to send digital num, when MCU receives the digital num, buzzer sound an alarm, the LCD display "shou dao num", and will be closed, digital tube