旋转LED灯的程序源代码

时间:2021-08-19 13:50:24
【文件属性】:

文件名称:旋转LED灯的程序源代码

文件大小:75KB

文件格式:ZIP

更新时间:2021-08-19 13:50:24

单片机 c语言

通过C编写C语言程序,单片机 uchar code table0[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};//从低位往高位移一个灯 6 uchar code table1[]={0x7f,0xbf,0xdf,0xef,0xf7,0xfb,0xfd,0xfe};//从高位往低位移一个灯 7 8 uchar code table2[]={0xfe,0xfc,0xf8,0xf0,0xe0,0xa0,0x80,0x00};//从低位到高位逐步全部点亮 9 uchar code table3[]={0x7f,0x3f,0x1f,0x0f,0x07,0x03,0x01,0x00};//从高位到低位逐步全部点亮 10 11 uchar code table4[]={0x01,0x03,0x07,0x0f,0x1f,0x3f,0x7f,0xff};//从低位到高位逐步全部熄灭 12 uchar code table5[]={0x80,0xa0,0xe0,0xf0,0xf8,0xfa,0xfe,0xff};//从高位到低位逐步全部熄灭 13 14 uchar code table6[]={0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80};//从低位到高位,灭一个灯移动 15 uchar code table7[]={0x80,0x40,0x20,0x10,0x08,0x04,0x02,0x01};//从高位到低位,灭一个灯移动


【文件预览】:
旋转LED灯1
----LED.uvproj(13KB)
----LED.plg(482B)
----LED.lnp(38B)
----LED.hex(19KB)
----LED.LST(69KB)
----LED.M51(86KB)
----LED.C(24KB)
----LED.uvopt(54KB)
----LED(66KB)
----LED.OBJ(82KB)

网友评论