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++

Small steps

Altera_Forum
Honored Contributor II
1,204 Views

Ok so I got linux to compile and run. 

 

The next step is to do a simple hello world which was fine done. 

 

now I want to write a app that can use the LCD or led  

 

I had a look at lcd_demo1.c under the pio_lcd16207 section of the NIOS II decives. 

 

I tried to create a new app with this as the c file and had a lot of errors. 

 

Does anyone have any Ideas? 

 

thanks  

peter
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
494 Views

Hi, 

 

The lcd_demo1.c is not an application for Linux, therefore, you cannot use it directly on Linux. My suggestion is to implement a Linux driver for LCD.  

 

For LED, there are some support in kernel, although they are simple. If you want to implement a driver that can be interfaced by your application, you can refer to the pio button driver in the kernel.
0 Kudos
Reply