testtest_lcd.c

来自「LCD.h and .c file for ATmega interface」· C语言 代码 · 共 38 行

C
38
字号
/*************************************************************************
Title:    testing output to a HD44780 based LCD display.
Author:   Peter Fleury  <pfleury@gmx.ch>  http://jump.to/fleury
File:     $Id: test_lcd.c,v 1.3 2003/12/10 19:32:48 peter Exp $
Software: AVR-GCC 3.3
Hardware: HD44780 compatible LCD text display
          ATS90S8515/ATmega if memory-mapped LCD interface is used
          any AVR with 7 free I/O pins if 4-bit IO port mode is used
**************************************************************************/
#include <stdlib.h>
#include <avr/io.h>
#include "lcd.h"



int main(void)
{
    

	

    /* initialize display, cursor off */
    lcd_init(LCD_DISP_ON);
	lcd_clrscr();
    for (;;) {                           /* loop forever */
             
        
        /* put string to display (line 1) with linefeed */
        lcd_puts("Hallo Welt :)\n");

        
        
        
        
        
    }
}

⌨️ 快捷键说明

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