文件名称:RED-P0-LED
介绍说明--下载内容均来自于网络,请自行研究使用
用一个按键控制一个灯
sbit P10=P1^0
sbit P11=P1^1
sbit K1=P0^0
sbit K2=P0^1 -Control a lamp with a button
sbit P10=P1^0
sbit P11=P1^1
sbit K1=P0^0
sbit K2=P0^1 -Control a lamp with a button
(系统自动生成,下载前可以参看下载内容)
下载文件列表
读 IO,用按钮控制点灯\22.bak
.....................\22.C
.....................\22.hex
.....................\22.M51
.....................\22_Opt.Bak
.....................\22.plg
.....................\22_Uv2.Bak
.....................\STARTUP.A51
.....................\STARTUP.lst
.....................\22.LST
.....................\22.OBJ
.....................\22
.....................\22.Uv2
.....................\22.Opt
读 IO,用按钮控制点灯
.....................\22.C
.....................\22.hex
.....................\22.M51
.....................\22_Opt.Bak
.....................\22.plg
.....................\22_Uv2.Bak
.....................\STARTUP.A51
.....................\STARTUP.lst
.....................\22.LST
.....................\22.OBJ
.....................\22
.....................\22.Uv2
.....................\22.Opt
读 IO,用按钮控制点灯