单片机编程:LED动态显示

[复制链接]
查看11 | 回复2 | 2009-6-12 18:32:06 | 显示全部楼层 |阅读模式
不知道你要怎能么动?我就给个数字显示也动,数码馆也流水显示的#include#include
//包含流水灯的头文件#define uint unsigned int#define uchar unsigned charuint temp,aa,numdu,numwe;
sbit duan=P3^3;//段控制端定义sbit wei=P3^4;//位控制端定义uchar code tablewe[]={0x01,0x02,0x04,0x08,0x10,0x20}; //6个数码管位码uchar code table[]={0xC0,0xF...
回复

使用道具 举报

千问 | 2009-6-12 18:32:06 | 显示全部楼层
#include#includesbitK1 =P1^4 ;
//PWM值增加键sbitK2 =P1^5 ;
//PWM值减少键sbitBEEP =P3^7 ;
//蜂鸣器unsigned char PWM=0x7f ; ...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行