Noise-Generator Posted June 3, 2019 Report Share Posted June 3, 2019 My MBSID is now ready to work. Unfortunately I found out now that a 4x20 lcd is just supported by the wilba and the classic mbsid just supports a 2x20 by default "fimware" (Its also cheaper than a 2x20) I still struggling with programming, I tried to setup the win7 chain but I stucked as I couldn't activate some plug in settings as described and gave up. I want to set it up at my mac but I'm not sure if the manual is still working with mojave. Some things are also not clear to understand for me. Do I just have to change the program line for initialising a 4x20 or do I have to crawl in the wilba code and copy/redesign the lcd code for showing up all the stuff? If it would be so easy to just change a line would be someone so kind to edit the code for me? Quote Link to comment Share on other sites More sharing options...
jaytee Posted June 3, 2019 Report Share Posted June 3, 2019 It’s been awhile since I looked but I’m pretty sure all that’s required is changing a single flag somewhere in the code. 1 Quote Link to comment Share on other sites More sharing options...
eptheca Posted June 3, 2019 Report Share Posted June 3, 2019 (edited) in the asm file, change to this, compile, upload and Bob's your uncle: ;; number of LCD lines (supported: 2 for 2x* LCDs and 4 for 4x* LCDs) #define DEFAULT_LCD_LINES 4 ;; LCD line -> cursor offsets #define DEFAULT_LCD_LINE_Y0 0x40 #define DEFAULT_LCD_LINE_Y1 0x14 #define DEFAULT_LCD_LINE_Y2 0x00 #define DEFAULT_LCD_LINE_Y3 0x54 Edited June 4, 2019 by eptheca 1 Quote Link to comment Share on other sites More sharing options...
Noise-Generator Posted June 3, 2019 Author Report Share Posted June 3, 2019 Ok, that means I really just have to change some lines but as I said I did not get the program chain working and I don't really know if I need to install all the stuff because this looks like installing stuff for realtime editing via mios studio. So I thought I just could open the asm file with the microchip ide and I need to include some files... Whatever, one other way I imagined was to translate the lines to hex and just exchange them but this did not work because the translation was not "satisfying" But if this the one and only way as it is described in the mios manual and still not obsolete ok, I will try to go trough this hell, again. Quote Link to comment Share on other sites More sharing options...
eptheca Posted June 3, 2019 Report Share Posted June 3, 2019 Here's the two versions of V2_044 compiled with settings for 4x20 Enjoy :) setup_6581.hex setup_8580.hex 3 Quote Link to comment Share on other sites More sharing options...
eptheca Posted June 4, 2019 Report Share Posted June 4, 2019 Here is the instructions on how to set up the tools http://www.midibox.org/dokuwiki/windows_toolchain_quickstart Quote Link to comment Share on other sites More sharing options...
the_duckchild Posted June 4, 2019 Report Share Posted June 4, 2019 your build looks great btw! 1 Quote Link to comment Share on other sites More sharing options...
Noise-Generator Posted June 4, 2019 Author Report Share Posted June 4, 2019 14 hours ago, eptheca said: Here's the two versions of V2_044 compiled with settings for 4x20 Enjoy :) setup_6581.hex setup_8580.hex Thank you very much eptheca - I love you! I was trying to copy sdcc to the Developer dir, but get error messages, it does not exist. Well, I´m going to annoy you guys later with this stuff, sooner or later I want/need to modify code. 2 hours ago, the_duckchild said: your build looks great btw! Thank you, it´s still a cardbox with cables and pcbs but I´m so glad all connections work... 1 Quote Link to comment Share on other sites More sharing options...
acfnews Posted February 13 Report Share Posted February 13 Hi! I am trying to achieve the same, use a 4x20 LCD display. I followed the instruction, and noticed the 2 default lines have shifted down 1 row. They are now in the middle two lines of the LCD. I guess that's fine for now. #define CS_MENU_DISPLAYED_ITEMS 10 #define DEFAULT_LCD_LINE_Y0 0x40 #define DEFAULT_LCD_LINE_Y1 0x14 #define DEFAULT_LCD_LINE_Y2 0x00 #define DEFAULT_LCD_LINE_Y3 0x54 But I'm not sure about these: ;; NOTE: if CS_MENU_DISPLAYED_ITEMS > 5, you have to adapt the DIN settings ;; in CS_MENU_DIN_TABLE below In the code: DIN_ENTRY CS_MENU_BUTTON_Sel6, 0, 0 ; define this if CS_MENU_DISPLAYED_ITEMS > 5 DIN_ENTRY CS_MENU_BUTTON_Sel7, 0, 0 ; define this if CS_MENU_DISPLAYED_ITEMS > 5 DIN_ENTRY CS_MENU_BUTTON_Sel8, 0, 0 ; define this if CS_MENU_DISPLAYED_ITEMS > 5 DIN_ENTRY CS_MENU_BUTTON_Sel9, 0, 0 ; define this if CS_MENU_DISPLAYED_ITEMS > 5 DIN_ENTRY CS_MENU_BUTTON_Sel10, 0, 0 ; define this if CS_MENU_DISPLAYED_ITEMS > 5 How do I need to interpret this? Please remember I am a real MB newbie :-) Thanks, Ron Quote Link to comment Share on other sites More sharing options...
Noise-Generator Posted February 15 Author Report Share Posted February 15 So you´ve got a 4 row Display? if CS_MENU_DISPLAYED_ITEMS > 5 = If displayed items MORE THAN 5 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.