d08a3d023dba001a1def8d16abc2cfe8
来自「使用RTL8019芯片进行以太网通讯的VERILOG源代码.」· 代码 · 共 17 行
TXT
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 + -
显示快捷键?