# MB SID classic with 4x20 LCD setup question

**URL:** <https://forum.midibox.org/t/mb-sid-classic-with-4x20-lcd-setup-question/20556>\
**Category:** MIDIbox SID\
**Tags:** classic, 4x20-lcd, sid\
**Created:** [June 3, 2019, 2:10pm UTC](https://forum.midibox.org/t/mb-sid-classic-with-4x20-lcd-setup-question/20556 "2019-06-03T14:10:51Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Noise-Generator](https://forum.midibox.org/user_avatar/forum.midibox.org/noise-generator/32/625_2.png) [@Noise-Generator](https://forum.midibox.org/u/Noise-Generator)\
**Post date:** [June 3, 2019, 2:10pm UTC](https://forum.midibox.org/t/mb-sid-classic-with-4x20-lcd-setup-question/20556/1 "2019-06-03T14:10:51Z")

</div>

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?&nbsp;

 ![D92F1BA6-04CD-400E-97F8-82FFE60C16D2.jpeg.a5e54f4a0be34d48b0b91b832c32398f.jpeg](https://forum.midibox.org/uploads/default/original/2X/4/4cc4d9c53a80d3236779f9a16371afeaa5e206c8.jpeg)

---

<div class="post-metadata">

**Author:** ![jaytee](https://forum.midibox.org/user_avatar/forum.midibox.org/jaytee/32/442_2.png) [@jaytee](https://forum.midibox.org/u/jaytee)\
**Post date:** [June 3, 2019, 2:24pm UTC](https://forum.midibox.org/t/mb-sid-classic-with-4x20-lcd-setup-question/20556/2 "2019-06-03T14:24:01Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![eptheca](https://forum.midibox.org/user_avatar/forum.midibox.org/eptheca/32/183_2.png) [@eptheca](https://forum.midibox.org/u/eptheca)\
**Post date:** [June 3, 2019, 4:42pm UTC](https://forum.midibox.org/t/mb-sid-classic-with-4x20-lcd-setup-question/20556/3 "2019-06-03T16:42:54Z")

</div>

in the asm file, change to this, compile, upload &nbsp;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

```

&nbsp;

---

<div class="post-metadata">

**Author:** ![Noise-Generator](https://forum.midibox.org/user_avatar/forum.midibox.org/noise-generator/32/625_2.png) [@Noise-Generator](https://forum.midibox.org/u/Noise-Generator)\
**Post date:** [June 3, 2019, 7:12pm UTC](https://forum.midibox.org/t/mb-sid-classic-with-4x20-lcd-setup-question/20556/4 "2019-06-03T19:12:12Z")

</div>

Ok, that means I&nbsp;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.&nbsp;

---

<div class="post-metadata">

**Author:** ![eptheca](https://forum.midibox.org/user_avatar/forum.midibox.org/eptheca/32/183_2.png) [@eptheca](https://forum.midibox.org/u/eptheca)\
**Post date:** [June 3, 2019, 10:36pm UTC](https://forum.midibox.org/t/mb-sid-classic-with-4x20-lcd-setup-question/20556/5 "2019-06-03T22:36:45Z")

</div>

Here’s the two versions of V2\_044&nbsp;compiled with settings for 4x20

Enjoy 🙂

&nbsp;

[setup\_6581.hex](http://midibox.org/forums/applications/core/interface/file/attachment.php?id=14476)

[setup\_8580.hex](http://midibox.org/forums/applications/core/interface/file/attachment.php?id=14477)

---

<div class="post-metadata">

**Author:** ![eptheca](https://forum.midibox.org/user_avatar/forum.midibox.org/eptheca/32/183_2.png) [@eptheca](https://forum.midibox.org/u/eptheca)\
**Post date:** [June 4, 2019, 6:20am UTC](https://forum.midibox.org/t/mb-sid-classic-with-4x20-lcd-setup-question/20556/6 "2019-06-04T06:20:04Z")

</div>

Here is the instructions on how to set up the tools&nbsp; [http://www.midibox.org/dokuwiki/windows\_toolchain\_quickstart](http://www.midibox.org/dokuwiki/windows_toolchain_quickstart)

---

<div class="post-metadata">

**Author:** ![the\_duckchild](https://forum.midibox.org/user_avatar/forum.midibox.org/the_duckchild/32/642_2.png) [@the\_duckchild](https://forum.midibox.org/u/the_duckchild)\
**Post date:** [June 4, 2019, 10:38am UTC](https://forum.midibox.org/t/mb-sid-classic-with-4x20-lcd-setup-question/20556/7 "2019-06-04T10:38:43Z")

</div>

your build looks great btw!&nbsp;

---

<div class="post-metadata">

**Author:** ![Noise-Generator](https://forum.midibox.org/user_avatar/forum.midibox.org/noise-generator/32/625_2.png) [@Noise-Generator](https://forum.midibox.org/u/Noise-Generator)\
**Post date:** [June 4, 2019, 1:26pm UTC](https://forum.midibox.org/t/mb-sid-classic-with-4x20-lcd-setup-question/20556/8 "2019-06-04T13:26:43Z")

</div>

> 14 hours ago, eptheca said:
> 
> Here’s the two versions of V2\_044&nbsp;compiled with settings for 4x20
> 
> Enjoy 🙂
> 
> &nbsp;
> 
> [setup\_6581.hex](\< _ **base\_url** _ \>/applications/core/interface/file/attachment.php?id=14476)
> 
> [setup\_8580.hex](\< _ **base\_url** _ \>/applications/core/interface/file/attachment.php?id=14477)

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.

&nbsp;

> 2 hours ago, the\_duckchild said:
> 
> your build looks great btw!&nbsp;

Thank you, it´s still a cardbox with cables and pcbs but I´m so glad all connections work…

---

<div class="post-metadata">

**Author:** ![acfnews](https://forum.midibox.org/user_avatar/forum.midibox.org/acfnews/32/10857_2.png) [@acfnews](https://forum.midibox.org/u/acfnews)\
**Post date:** [February 13, 2024, 5:50pm UTC](https://forum.midibox.org/t/mb-sid-classic-with-4x20-lcd-setup-question/20556/9 "2024-02-13T17:50:36Z")

</div>

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.&nbsp;

&nbsp;

&nbsp;

&nbsp;

```
#define CS\_MENU\_DISPLAYED\_ITEMS 10 #define DEFAULT\_LCD\_LINE\_Y0 &nbsp; &nbsp; 0x40 #define DEFAULT\_LCD\_LINE\_Y1 &nbsp; &nbsp; 0x14 #define DEFAULT\_LCD\_LINE\_Y2 &nbsp; &nbsp; 0x00 #define DEFAULT\_LCD\_LINE\_Y3 &nbsp; &nbsp; 0x54

```

But I’m not sure about these:

```
&nbsp; &nbsp; &nbsp; &nbsp; ;; NOTE: if CS\_MENU\_DISPLAYED\_ITEMS \> 5, you have to adapt the DIN settings &nbsp; &nbsp; &nbsp; &nbsp; ;; in CS\_MENU\_DIN\_TABLE below

```

In the code:

```
&nbsp; &nbsp; &nbsp; &nbsp; DIN\_ENTRY &nbsp; &nbsp; &nbsp; CS\_MENU\_BUTTON\_Sel6, &nbsp; &nbsp; 0, &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;; define this if CS\_MENU\_DISPLAYED\_ITEMS \> 5 &nbsp; &nbsp; &nbsp; &nbsp; DIN\_ENTRY &nbsp; &nbsp; &nbsp; CS\_MENU\_BUTTON\_Sel7, &nbsp; &nbsp; 0, &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;; define this if CS\_MENU\_DISPLAYED\_ITEMS \> 5 &nbsp; &nbsp; &nbsp; &nbsp; DIN\_ENTRY &nbsp; &nbsp; &nbsp; CS\_MENU\_BUTTON\_Sel8, &nbsp; &nbsp; 0, &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;; define this if CS\_MENU\_DISPLAYED\_ITEMS \> 5 &nbsp; &nbsp; &nbsp; &nbsp; DIN\_ENTRY &nbsp; &nbsp; &nbsp; CS\_MENU\_BUTTON\_Sel9, &nbsp; &nbsp; 0, &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;; define this if CS\_MENU\_DISPLAYED\_ITEMS \> 5 &nbsp; &nbsp; &nbsp; &nbsp; DIN\_ENTRY &nbsp; &nbsp; &nbsp; CS\_MENU\_BUTTON\_Sel10, &nbsp; &nbsp;0, &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; &nbsp;; define this if CS\_MENU\_DISPLAYED\_ITEMS \> 5

```

How do I need to interpret this?&nbsp;

&nbsp;

Please remember I am a real MB newbie 🙂

&nbsp;

&nbsp;

Thanks,

&nbsp;

Ron

---

<div class="post-metadata">

**Author:** ![Noise-Generator](https://forum.midibox.org/user_avatar/forum.midibox.org/noise-generator/32/625_2.png) [@Noise-Generator](https://forum.midibox.org/u/Noise-Generator)\
**Post date:** [February 15, 2024, 7:09pm UTC](https://forum.midibox.org/t/mb-sid-classic-with-4x20-lcd-setup-question/20556/10 "2024-02-15T19:09:11Z")

</div>

So you´ve got a 4 row Display?

```
if CS\_MENU\_DISPLAYED\_ITEMS \> 5

```

= If displayed items MORE THAN 5
