51 MCU Snake game
2018-03-20
0 0 0
no vote
Other
Earn points
&The greedy snake requires the system to respond to the key quickly, so the polling method is not desirable, only depends on external interrupt. However, 51 has only two external interrupts, so we need at least four direction keys. In this way, we can't match one & nbsp; & nbsp; key with an external interrupt. By using the 4-input and gate, we can gather all the key states together and send them to the external interrupt 0. We connect all four buttons to the and gate. As long as one button is pressed, the output of the and gate will produce a falling edge, which will cause an external interrupt
Related Source Codes
Android AOA Android Open Accessory Development Usi
0
0
no vote
Golang AOA Android Open Accessory HID Control
0
0
no vote
PClite
0
0
no vote
GMSK Linear Receiver
0
0
no vote
The golden version of AFT that has been passed dow
0
0
no vote
No comment