用汇编或c语言四个按键控制数码管显示0~F

51单片机
选择按键端口为P2.0~P2.7
共阴或共阳都可以
本人初学汇编。

https://blog.csdn.net/weixin_48524215/article/details/111409898