熱門(mén): 51單片機(jī) | 24小時(shí)必答區(qū) | 單片機(jī)教程 | 單片機(jī)DIY制作 | STM32 | Cortex M3 | 模數(shù)電子 | 電子DIY制作 | 音響/功放 | 拆機(jī)樂(lè)園 | Arduino | 嵌入式OS | 程序設(shè)計(jì)
|
發(fā)布時(shí)間: 2025-1-18 18:43
正文摘要:#include<reg51.h> unsigned char num=10; bit bz=0; sbit jia=P1^0; sbit jian=P1^1; sbit pwmout=P1^2; void del_ms(unsigned int n)//ms延時(shí)函數(shù) { unsign ... |
lkc8210 發(fā)表于 2025-1-20 10:00 謝謝建議,現(xiàn)在正常了,是我弄錯(cuò)了。 |
|
按鍵代碼邏輯錯(cuò)誤 建議改為下面
|
Powered by 單片機(jī)教程網(wǎng)