Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

printf to LCD 16207

Altera_Forum
Honored Contributor II
907 Views

Hi,  

 

My LCD routine works fine.I used the code from a template file in Eclipse. But i dun quite understand this template file. 

Does anyone know how these 2 lines work??  

 

FILE* fp; 

fp= fopen(LCD_DISPLAY_NAME, "w"); 

 

Am i writing to the internal physical memory of the LCD module?? otherwise where is this file located at? 

 

 

regards, 

Michael
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
236 Views

It's C language essentials. You create a pointer fp, which allocates some space in memory. Then You assign that memory space to LCD. Google "C writing to a file"

0 Kudos
Reply