--- Quote Start ---
originally posted by lili@Feb 11 2007, 07:41 PM
i have built my nios ii system on de2 board having dram, jtag uart and 16207 lcd. this is my code in nios ii ide:
---------------------------------------------# include <stdio.h># include "system.h"
int main()
{
file *fp=0;
fp = fopen( "/dev/lcd_16207_0", "w");
if (fp==0)
printf("lcd not ready...\n");
else
{ printf("lcd ready...\n");
fprintf(fp, "hello lcd...\n");
}
fclose(fp);
return 0;
}
----------------------------------------------
everything seems ok, but i dont know why lcd does not work.
please help me...
thanks alot
lili
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=21438)
--- quote end ---
--- Quote End ---
Take a look at the following link. He forgot to turn the LCD on inside his code. Hope that helps a little.
http://forum.niosforum.com/forum/index.php...pic=5081&hl=lcd (
http://forum.niosforum.com/forum/index.php?showtopic=5081&hl=lcd)