熱門(mén): 51單片機(jī) | 24小時(shí)必答區(qū) | 單片機(jī)教程 | 單片機(jī)DIY制作 | STM32 | Cortex M3 | 模數(shù)電子 | 電子DIY制作 | 音響/功放 | 拆機(jī)樂(lè)園 | Arduino | 嵌入式OS | 程序設(shè)計(jì)
|
發(fā)布時(shí)間: 2019-5-29 20:50
正文摘要:驅(qū)動(dòng)程序: #include<reg51.h> sbit Kp=P1^6; sbit Kn=P1^7; void main() { unsigned char i; unsigned int t; unsigned char r[8]={0xc5,0xc1,0xc9,0xc8,0xca,0xc2,0xc6,0xc4}; P1=0xf0; while(1){ if((K ... |
Powered by 單片機(jī)教程網(wǎng)