Intel® FPGA University Program
University Program Material, Education Boards, and Laboratory Exercises

Using LCD on DE2

Altera_Forum
Honored Contributor II
1,570 Views

Hi. I know a lot of post are about lcd and de2 but i have some problems. 

In fact, i use the 3 files in my project:  

altera_avalon_lcd_16207.c 

altera_avalon_lcd_16207.h 

altera_avalon_lcd_16207_regs.h 

(i have attached them in txt so you can check it). 

 

The problem is: I'm not very good at c language and I was wondering if someone can write me a small code that uses functions of altera_avalon_lcd_16207.c to control the LCD. 

 

Thanks 

 

PS: I use a NIOSII and NIOS IDE
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
826 Views

Hi. 

In "DE2_demonstrations\DE2_NET\hello_led_0" look for LCD.C file. There you have an example. 

It's: 

 

--- Quote Start ---  

void LCD_Test() 

char Text1[16] = "Altera DE2 Board"; 

char Text2[16] = "Ethernet Testing"; 

// Initial LCD 

LCD_Init(); 

// Show Text to LCD 

LCD_Show_Text(Text1); //This show the above text 1st line 

// Change Line2 

LCD_Line2(); 

// Show Text to LCD 

LCD_Show_Text(Text2); //This show the above text 2nd line 

--- Quote End ---  

0 Kudos
Reply