Don't ad-block us - support your favorite websites. We have safe, unobstrusive, robotics related ads that you actually want to see - see here for more.
0 Members and 1 Guest are viewing this topic.
// ATMega8 LCD Driver//// (C) 2009 Radu Motisan , [email protected]// www.pocketmagic.net// All rights reserved.//// test.c: sample test for the HD44780 LCD functions// For more details visit the website.#include "lcd.h"int main(){ int i=0; lcd_init(); while(1) { i = (i+1)%10; //lcd_clrscr(); lcd_home(); lcd_string2("Hello World! %d\npocketmagic.net",i); for (int i=0;i<10;i++) //some delay _auxDelay(1000000); } return 0;}
#include "at8LCD.h"int main(){ LCD_init(); LCD_write('A');}
well it shouldn't say LCD.c:5: undefined reference to `LCD_init'. this would mean you have a file LCD.c with the same function. The files I sent were at8LCD.c, and .h
#include "at8LCD.h"int main(){ while(1){ LCD_init(); LCD_write('A'); } return 0 ;}