xtest03_9.c

来自「AT91sam7s 256 B/D example」· C语言 代码 · 共 33 行

C
33
字号
/* ========================================================================== */
/*			Xtest03_9.c : Infinite Loop(1)		              */
/* ========================================================================== */
/*			  Designed and programmed by Duck-Yong Yoon in 2007.  */

#include "AT91SAM7S256.h"
#include "lib_AT91SAM7S256.h"
#include "OK7S256ads.h"

int main(void)
{
  MCU_initialize();				// initialize AT91SAM7S256 & kit
  Delay_ms(50);					// wait for system stabilization
  LCD_initialize();				// initialize text LCD module

  LCD_string(0x80, "Infinite Loop(1)");		// display title
  LCD_string(0xC0, "                ");

  Beep();					// beep 

  LED_on(LED1);					// LED1 on 
  Delay_ms(500);
  LED_off(LED1);				// LED1 off
  Delay_ms(500);

  LED_on(LED2);					// LED2 on 
  Delay_ms(500);
  LED_off(LED2);				// LED2 off
  Delay_ms(500);

  while(1);					// infinite loop
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?