調(diào)光C程序
/*#include<reg52.h> #define uint unsigned int #define uchar unsigned char #define uchar unsign...
/*#include<reg52.h> #define uint unsigned int #define uchar unsigned char #define uchar unsign...
# include < reg52.h > # include < 24C02.h> # define uint unsigned int # defin...
基礎程序設計 01 閃爍的LED /* 名稱閃爍的LED 說明LED按設定的時間間隔閃爍 */ #include<reg51.h&...
基礎程序設計 01 閃爍的LED /* 名稱閃爍的LED 說明LED按設定的時間間隔閃爍 */ #include<re...
// 學生管理.cpp : Defines the entry point for the application. // #include "stdafx.h" #include "resourc...
// 學生管理.cpp : Defines the entry point for the application. // #include "stdafx.h" #include "resourc...
/****************temic*********t5557***********************************/ #include &nb...
在本課中,我們要用一個按鍵來實現(xiàn)跑馬燈的 10 級調(diào)速。這又會涉及到鍵的去抖的問 題。 本課的試驗結(jié)果是,每按一次按鍵,跑馬速度就降低一級,共 10 級。 這里我們又增加了...
LED 一般是恒流操作的,如何改變 LED 的亮度呢?答案就是 PWM 控制。在一定的 頻率的方波中,調(diào)整高電平和低電平的占空比,即可實現(xiàn)。比如我們用低電平點亮一個 LED 燈,我們假設把一個頻率周期...
include<reg52.h> #define uint unsigned int #define uchar unsigned char uint temp,aa...