Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
21 years ago

Small steps

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

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.