lcd_test.c
来自「压缩包内包含了:FPGA设计初级班和提高班培训课堂PPT;实验的源代码;实验指导」· C语言 代码 · 共 17 行
C
17 行
#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%shello red logic\nLCD Displaying.",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 + =
减小字号Ctrl + -
显示快捷键?