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

📄 lcd_test.c

📁 NIOS II IDE 编程
💻 C
字号:
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include "system.h"
#define ESC 27
#define ESC_TOP_LEFT "[1;0H" 
#define ESC_BOTTOM_LEFT "[2;0H" 
int main( void )
{
  FILE *lcd;
  lcd = fopen("/dev/lcd_16207", "w");
  fprintf(lcd, "%c%syou'll well done\nLook at me",ESC,ESC_TOP_LEFT); 
  printf("If you can see messages scrolling on the LCD Display, then it is functional!\n");
  usleep(2000000);
  fclose( lcd );
}

⌨️ 快捷键说明

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