Forum Discussion
Altera_Forum
Honored Contributor
14 years agothank you for your reply. Im new in NIOS II. The LCD is now working. Now i need to write some charater on the LCD if i press a button and a different one when a relaese the button. FOr example:
if button = 1 "HELLO" else "HI". i've write the follwing xode but is doesn't work. Can you hel me o n this. thank you. int main (void) { // int nbChar; int botao; FILE * lcd; lcd = fopen(LCD_DISPLAY_NAME, "w"); // Open the LCD device botao = IORD_ALTERA_AVALON_PIO_EDGE_CAP(USER_PB_BASE); if (botao == 1) fprintf(lcd, "LASSE 2011\n"); elsefprintf(lcd, "Second line 2011\n"); return(0); }