Intel® FPGA University Program
University Program Material, Education Boards, and Laboratory Exercises
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.

Using LCD on DE2

Altera_Forum
Honored Contributor II
838 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
94 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 ---  

Reply