Antonio Posted December 20, 2005 Report Share Posted December 20, 2005 Hy everybody,i have some problem to set in the best way my 4 X 20 LCD.I explain better, since my LCD has some problems in displayng characters in the first row (it seems that something is broken) I would like to use only the second and third row.I know that is a problem of Offset, and i found out a trhead ( http://www.midibox.org/forum/index.php?topic=5110.0 ) about this, but i really don't know how to implement what Thorsten suggested to do.I think that the problem is in my different version of MIDI_box_sid software(my version is MIDIBOX SID_V1_7a).Thorsten talks about DEFAULT_LCD_SIZE in main.asm.I think that in my version this variable is called CS_MENU_DISPLAYED_ITEMS. Is it right?Moreover, i am not able to find any "#if ... #endif soubroutine that controlls the value of this variable.Am i totally wrong or in my version of software the soubroutine are managed in different way?RegardsAntonio Quote Link to comment Share on other sites More sharing options...
Antonio Posted December 20, 2005 Author Report Share Posted December 20, 2005 Just to better explain....What I would like to understand is the way to control the rows of my LCD display. (for exampple avoiding the first row and starting from the second)Which file I have to modify, which variables...?Just to remind in this trhead ( http://www.midibox.org/forum/index.php?topic=5110.0 ) there are some explanation but it seems that doesn't much with the file I loaded in my Midibox SID (V_1_7_a).RegardsAntonio Quote Link to comment Share on other sites More sharing options...
TK. Posted December 20, 2005 Report Share Posted December 20, 2005 Hi,I really don't know why you guys are trying to use displays which are definitely not properly supported by the application... :-/George talks about MIDIbox64, and not about MIDIbox SID. In MBSID, the menu interface is implemented on a very different way. There is no simple solution to change the layout for a "more-than-2-line" display. I never considered this, therefore you won't find such a switch in the code.So far the general statement in order to avoid that anybody else comes to the same idea!Inofficial statement (maybe I should delete this after one week ;-)): so long you only want to center the screen (menu items displayed in second and third line), following code in USER_Init (-> main.asm) should do the trick:USER_Init movlw 0x40 ; first line -> 2nd line of 4x20 LCD movwf MIOS_PARAMETER1 movlw 0x14 ; second line -> 3rd line of 4x20 LCD movwf MIOS_PARAMETER2 movlw 0x00 ; third line not supported by MBSID, mapped to 1st line of 4x20 LCD movwf MIOS_PARAMETER3 movlw 0x54 ; fourth line not supported by MBSID, mapped to 4th line of 4x20 LCD call MIOS_LCD_YAddressSet[/code]CS_MENU_DISPLAYED_ITEMS should be set to 5!Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
Antonio Posted December 20, 2005 Author Report Share Posted December 20, 2005 Thanks.Just to clarify my question,i'd like to understand better the code in order to be able to change it if I need.That's all.CiaoAntonio Quote Link to comment Share on other sites More sharing options...
TK. Posted December 20, 2005 Report Share Posted December 20, 2005 If you want to customize the layout, you can do it in cs_menu.inc, most important functions:CS_MENU_PrintILineCS_MENU_PrintPLineBest Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
Antonio Posted December 20, 2005 Author Report Share Posted December 20, 2005 Great Thorsten.Thanks!Everything works fine.I succeded in using second and third line of my 4 X 20 Display.Thanks a lotAntonio Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.