Retrieving string from DAT to display on LCD
Hello all again! I have an issue trying to get a string from the DAT section to display to my LCD. Can someone assist me on this please? I know my function works since I can manually put a string in the LCD_Line1 and it will show correctly.
VAR
LONG LCD_Line1
PUB main | selected_menu
cognew(display_updater, @displayStack)
selected_menu := 0
LCD_Line1 := string(@@_menuItems[selected_menu]) ' --------- This does not work....
PUB display_updater
' code to init the display....
repeat
lcd.str(LCD_Line1)
DAT
Menu0 BYTE "Menu 0", 0
Menu1 BYTE "Menu 1", 0
Menu2 BYTE "Menu 2", 0
_menuItems WORD @Menu0, @Menu1, @Menu2

Comments