Forum Discussion
Altera_Forum
Honored Contributor
21 years ago --- Quote Start --- originally posted by slacker@Aug 12 2004, 01:26 PM why are you bothering with initialization?
with nios ii (and the hal), you should be able to open the device and use fprintf to print to it, like so:
char *your_msg = "all work and no play...";
/* get a file handle */
/* note: your name will match the name you chose from sopc builder... the example, below, matches the name in the standard and full_featured designs*/
file *lcd = fopen( "/dev/lcd_display", "w");
/* using the lcd file handle, "print" to the lcd device */
fprintf(lcd, "%s\n", your_msg);
the syntax may not be *exactly* like this, but this is what i recall from several of the software "templates". for some reason count binary comes to mind....
cheers,
- slacker --- Quote End --- he's trying to use ucLinux, not HAL. It sounds like he's now got it initialising under ucLinux, so it should be a matter of reading the datasheet now..... Adrian