數(shù)據(jù)驅(qū)動、堅持為客戶提供有價值的服務(wù)和內(nèi)容
## 代碼```#include sbit LED = P2^0;sbit K1 = P3^0;sbit K2 = P3^1;unsigned int freq = 50; // 初始頻率為50Hzvoid Timer0_ISR() interrupt 1{static unsigned int cnt = 0;cnt++;if(cnt == 1000/freq){LED = ~LED; //每達到一定