代码搜索结果
找到约 10,000 项符合
LED 的代码
led.cmd
-w
-stack 200
-heap 200
-l rts2xx.lib
MEMORY
{
PAGE 0:
VECS :o=0,l=40h
PRCT :o=40h,l=4
PROG :o=9000h,l=2000h
PAGE 1:
IDATA1:o=300h,l=100h
IDATA2:o=0c00h,l=400h
led.ctl
VERSION 5.00
Begin VB.UserControl LED
BackColor = &H00939393&
ClientHeight = 765
ClientLeft = 0
ClientTop = 0
ClientWidth = 2370
BeginProper
led.h
//led.h
// init led port
void LedsInit(void);
// single blink led 1
void Led1Blink(void);
void Led1BlinkSlow(void);
// turn on led 1
void Led1On(void);
// turn off led 1
void Led1Off(void
led.c
//led.c
#include
#include "led.h"
void Delay (unsigned long a) { // 简单延时
while (--a!=0);
}
void LedsInit(void) { // 初始化led端口
IO0DIR_bit.P0_31 = 1; // port0.12设为输出
led.h
//led.h
void Delay (unsigned long a);
// init led port
void LedInit(void);
// single blink
void LedBlink(void);
// turn on led
void LedOn(void);
// turn off led
void LedOff(void);
led.c
#include
#include "led.h"
void Delay (unsigned long a) { // 简单延时
while (--a!=0);
}
void LedInit(void) { // 初始化led端口
IO0DIR_bit.P0_31 = 1; // port0.31设为输出,LED
}