C语言单片机?

这题怎么写?
2025-03-04 11:46:28
推荐回答(1个)
回答1:

char ss;

char seg7[10]={0---9的七段码共阴极数据};


ss=P2;

ss>>= 4;  //右移4位;

P1=seg7[ss];