调光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...
在本课中,我们要用一个按键来实现跑马灯的 10 级调速。这又会涉及到键的去抖的问 题。 本课的试验结果是,每按一次按键,跑马速度就降低一级,共 10 级。 这里我们又增加了...
LED 一般是恒流操作的,如何改变 LED 的亮度呢?答案就是 PWM 控制。在一定的 频率的方波中,调整高电平和低电平的占空比,即可实现。比如我们用低电平点亮一个 LED 灯,我们假设把一个频率周期...
include<reg52.h> #define uint unsigned int #define uchar unsigned char uint temp,aa...