• 回答数

    8

  • 浏览数

    179

凉风正正
首页 > 英语培训 > 流水灯英文

8个回答 默认排序
  • 默认排序
  • 按时间排序

小韵子39

已采纳

wave ledstring led

流水灯英文

240 评论(13)

芳菲七月

流水灯Water lamp

111 评论(10)

曾在气院呆过

找个对应的字符库,实在不行自己软件做一下变换.

238 评论(15)

璐璐308738

找一个字库软件提取8*8的英文字母,然后导出成我们要的数据

205 评论(10)

343004227qq

我真的帮不了你!很难过,你去问老师吧!

108 评论(10)

看i哦飞机

我的毕业论文就是用google翻的,理科导师根本看不懂,看得懂也不会去看的,只要关键词翻译对就可以了。

273 评论(8)

美利达达道路

#include#include#define uchar unsigned char#define uint unsigned int//--------------------------------------------uchar code Table_of_Digits[40][8]={ {0x1C,0x22,0x22,0x22,0x22,0x22,0x22,0x1C},//0     {0x08,0x18,0x08,0x08,0x08,0x08,0x08,0x1C},//1     {0x1C,0x22,0x02,0x02,0x1C,0x20,0x20,0x3E},//2     {0x1C,0x22,0x02,0x1C,0x02,0x02,0x22,0x1C},//3     {0x08,0x18,0x28,0x48,0x7C,0x08,0x08,0x08},//4     {0x3E,0x20,0x20,0x3E,0x02,0x02,0x22,0x1C},//5     {0x1C,0x22,0x20,0x3C,0x22,0x22,0x22,0x1C},//6     {0x3E,0x02,0x04,0x08,0x10,0x10,0x10,0x10},//7     {0x1C,0x22,0x22,0x1C,0x22,0x22,0x22,0x1C},//8     {0x1C,0x22,0x22,0x22,0x1E,0x02,0x22,0x1C},//9     {0x00,0x1C,0x22,0x22,0x22,0x3E,0x22,0x22},//A    {0x00,0x3C,0x22,0x22,0x3E,0x22,0x22,0x3C},//B    {0x00,0x1C,0x22,0x20,0x20,0x20,0x22,0x1C},//C    {0x00,0x3C,0x22,0x22,0x22,0x22,0x22,0x3C},//D    {0x00,0x3E,0x20,0x20,0x3E,0x20,0x20,0x3E},//E    {0x00,0x3E,0x20,0x20,0x3E,0x20,0x20,0x20},//F    {0x00,0x1C,0x22,0x20,0x3E,0x22,0x22,0x1C},//G    {0x00,0x22,0x22,0x22,0x3E,0x22,0x22,0x22},//H    {0x00,0x1C,0x08,0x08,0x08,0x08,0x08,0x1C},//I    {0x00,0x3E,0x08,0x08,0x08,0x08,0x28,0x18},//J    {0x00,0x20,0x2C,0x30,0x20,0x30,0x2C,0x20},//K    {0x00,0x20,0x20,0x20,0x20,0x20,0x20,0x3E},//L    {0x00,0x42,0x66,0x5A,0x42,0x42,0x42,0x42},//M    {0x00,0x00,0x2C,0x32,0x22,0x22,0x22,0x22},//n    {0x00,0x1C,0x22,0x22,0x22,0x22,0x22,0x1C},//O    {0x00,0x3C,0x22,0x22,0x3C,0x20,0x20,0x20},//P    {0x00,0x1C,0x22,0x22,0x22,0x2A,0x26,0x1F},//Q    {0x00,0x38,0x24,0x24,0x38,0x30,0x28,0x24},//R    {0x00,0x1C,0x22,0x20,0x1C,0x02,0x22,0x1C},//S    {0x00,0x3E,0x08,0x08,0x08,0x08,0x08,0x08},//T    {0x00,0x42,0x42,0x42,0x42,0x42,0x42,0x3C},//U    {0x00,0x22,0x22,0x22,0x14,0x14,0x08,0x00},//V    {0x00,0x41,0x41,0x49,0x55,0x55,0x63,0x41},//W    {0x00,0x00,0x42,0x24,0x18,0x18,0x24,0x42},//X    {0x00,0x22,0x22,0x14,0x08,0x10,0x20,0x00},//Y    {0x00,0x3E,0x02,0x04,0x08,0x10,0x20,0x3E},//Z};//---------------------------------------uchar code xdat[8]={0x80,0x40,0x20,0x10,0x08,0x04,0x02,0x01};uchar code ydat[8]={0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80};//---------------------------------------uchar i=0;uchar j=0;uchar t=0;uchar Num_Index,disnum;uchar key;uchar xi;uchar yi;//---------------------------------------uchar code disstr[]="C201600102020";//显示内容可以自己定义//---------------------------------------sbit we1=P1^1;sbit we2=P1^3;//---------------------------------------//主程序//---------------------------------------void main(){//P1=0x80;Num_Index=0; //从0 开始显示TMOD=0x01; //T0 方式0TH0=(65536-2000)/256; //2ms 定时TL0=(65536-2000)%256;IE=0x82;key=0;xi=0;yi=0;EX0=1;IT0=1;TR0=1; //启动T0while(1);}//---------------------------------------//外部中断0 中断函数//按键处理//---------------------------------------void ext_int0() interrupt 0{ key++; key&=0x03;}//---------------------------------------//定时器0 中断函数//显示控制//---------------------------------------void LED_Screen_Display() interrupt 1{TH0=(65536-2000)/256; //2ms 定时TL0=(65536-2000)%256;switch(key){//显示点阵图形case 0:  P0=0xff;  if(disstr[Num_Index]>='A')disnum=disstr[Num_Index]-'A'+10;  else disnum=disstr[Num_Index]-'0';  we1=1;     P0=~Table_of_Digits[disnum][i];  we1=0;     P0=0xff; //输出位码和段码  we2=1;  P0=ydat[i];  we2=0;     if(++i==8) i=0; //每屏一个数字由8 个字节构成     if(++t==250) //每个数字刷新显示一段时间     {     t=0;     if(++Num_Index==13) Num_Index=0; //显示下一个数字     }     break;//流水灯“点”模式case 1:  we1=1;  P0=~xdat[xi];  we1=0;  we2=1;  P0=ydat[yi];  we2=0;     if(++t==250) //每个数字刷新显示一段时间  {  t=0;  yi++;  if(yi>7){yi=0;xi++;}  if(xi>7)xi=0;  }  break;//流水灯“行列”模式case 2:  we1=1;     P0=0x00;  we1=0;     P0=0xff; //输出位码和段码  we2=1;  P0=xdat[i];  we2=0;     if(++t==250) //每个数字刷新显示一段时间     {     if(++i==8) i=0; //每屏一个数字由8 个字节构成     t=0;     }     break;default: key=0; i=0; j=0; t=0; xi=0; yi=0; Num_Index=0; we1=1; P0=0xff; we1=0; we2=1; P1=0x80; we2=0;  break;}}

330 评论(11)

那个啥来着呢

Since the introduction of computer-chip technology in society, in every field in a wide range of applications.Running light control systems, the microcontroller is replaced by the gear regulating the delay time of old growth rate in future in the heart of this system.Due to the MCU has several benefits: small size, light weight, a single power supply; features, low power consumption and low; and the data transfer, one finds in SCM internal, run fast, uding, high reliability, so single-chip is widely used in measurement and control system, data acquisition, instrumental, Mechatronics product, smart interface, computer communications, as well as single-chip multilevel system, etc.This article is primarily deals with a subject name is single-chip-chip, flowing water and light control, which enables we learned how to use the SCM control our lives in the application of the facility.The design of this subject at a later time, introduced me to many aspects of the SCM.This topic describes in detail by the MCS-89C51 manifold programming the control circuit, it completed the single-chip flowing water and light control features, and gives specific hardware circuits and the appropriate program.This kind of control circuit reliability, flexibility, use the wide-ranging especially suitable for medium-sized cities of traffic lights, neon lights, etc.Rather, it on other similar system has certain significance.

181 评论(11)

相关问答