ledloop1.c
来自「台湾新茂SM59128单片机开发与C语言编程-例子」· C语言 代码 · 共 40 行
C
40 行
#include "SM59128_C.h"
extern void ledloop1();
extern void ledloop2();
extern void delay();
//#include"sfr.h"
//*************************************************************************
//
// S Y N C M O S T E C H N O L O G Y
//
// COPYRIGHT 2005 BY SyncMOS TECHNOLOGY
// -- ALL RIGHTS RESERVED --
//
// File Name :: ledloop1.c
// Created :: August,8.05'
// Editor :: chia-hua
// Revision ::
// Description :: 128K Bytes Code Flash -bank 0
//*************************************************************************
// Define:
// (1).sconf = 00h => bank0 .
//*************************************************************************
/************************************************************/
//ledloop1
/************************************************************/
void ledloop1()
{ P0=0X55;
delay();
P0=0XAA;
delay();
}
/************************************************************/
//delay time
/************************************************************/
/*void delay()
{ int i,j;
for(i=0;i<250;i++)
for (j=0;j<250;j++)
{}
}*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?