⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xtest07_1.c

📁 AT91sam7s 256 B/D example
💻 C
字号:
/* ========================================================================== */
/*	    Xtest07_1.c : English/Korean Language Display on GLCD	      */
/* ========================================================================== */
/*			  Designed and programmed by Duck-Yong Yoon in 2007.  */

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

int main(void)
{
  unsigned int i;

  MCU_initialize();				// initialize AT91SAM7S256 & kit
  Delay_ms(50);					// wait for system stabilization
  LCD_initialize();				// initialize text LCD
  GLCD_clear();		               		// initialize GLCD screen

  LCD_string(0x80,"Graphic LCD Test");          // display title on text LCD
  LCD_string(0xC0," Englisk/Korean ");

  while(1)
    { Beep();
      GLCD_string(0,0,0,"ARM7 付胶磐 虐飘");	// display screen 1
      GLCD_string(1,0,1," OK-7S256  V1.0 ");
      GLCD_string(2,0,0,"   2007/06/01   ");
      GLCD_string(3,0,0,"辣傣侩 汲拌,力累");
      Delay_ms(5000);

      Beep();
      GLCD_string(0,0,0,"    泅措 LCD    ");	// display screen 2
      GLCD_string(1,0,1,"  HG12605NY-LY  ");
      GLCD_string(2,0,0,"                ");
      GLCD_string(3,0,2,"128x64 弊贰侨LCD");
      Delay_ms(5000);

      Beep();
      GLCD_string(0,0,0," 3啊瘤 巩磊加己 ");	// display screen 3
      GLCD_string(1,0,0,"巩磊加己0 : 沥惑");
      GLCD_string(2,0,0,"巩磊加己1 : ");
      GLCD_string(2,12,1,"开惑");
      GLCD_string(3,0,0,"巩磊加己2 : ");
      GLCD_string(3,12,2,"关临");
      Delay_ms(5000);

      Beep();
      GLCD_xy(0,0);				// display screen 4
      for(i=0x00; i<=0x3F; i++)			// (from 0x00 to 0x3F)
        GLCD_English(0, i);
      Delay_ms(5000);
      GLCD_xy(0,0);				// display screen 5
      for(i=0x40; i<=0x7F; i++)			// (from 0x40 to 0x7F)
        GLCD_English(1, i);
      Delay_ms(5000);
    }
}

⌨️ 快捷键说明

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