Altera_Forum
Honored Contributor
10 years agoDE2-70 LCD screen? Header not found? Where does altera eclipse put header files?
Hello all,
lately I've been working with a DE2-70 and for some reason eclipse can't find the header#include "altera_up_avalon_character_lcd.h" Now, I know this header is supposed to be there because it's provided in an example that my professor gave me. the code given to me by mt professor (in the event that it's any help) #include <stdio.h>#include "system.h"# include "altera_up_avalon_character_lcd.h"
int main ()
{
alt_up_character_lcd_dev* hLCD;
hLCD = alt_up_character_lcd_open_dev (DE270_LCD_NAME);
if (hLCD == NULL)
{
printf ("Character LCD is missing\n");
return (0);
}
else
{
printf ("Character LCD is OK\n");
alt_up_character_lcd_init (hLCD);
}
int i = 0;
char TopMsg = "0123456789ABCDEF\0";
char BtmMsg = " Hello class\0";
while (1)
{
alt_up_character_lcd_init (hLCD);
alt_up_character_lcd_set_cursor_pos (hLCD, 0, 0);
alt_up_character_lcd_string (hLCD, TopMsg);
for (i = 0; i < 15000000; i++);
alt_up_character_lcd_init (hLCD);
alt_up_character_lcd_set_cursor_pos (hLCD, 0, 1);
alt_up_character_lcd_string (hLCD, BtmMsg);
for (i = 0; i < 15000000; i++);
}
return (0);
}
So naturally I do need the header file in order to build this example. I searched my computer and could not find the header file I require anywhere. Does anyone know where the header would be? or how I can get eclipse to find it? alternatively if it isn't there would anyone happen to have a copy of it?