Jump to content

2x24 LCD


Shum
 Share

Recommended Posts

Hi Shum,

in main.asm, set:

#define DEFAULT_LCD_SIZE 1
for 2x20 display mode, and replace
#if DEFAULT_LCD_SIZE == 1       ; 2x20
  #define DEFAULT_YOFFSET_LINE0 0x02
  #define DEFAULT_YOFFSET_LINE1 0x42
  #define DEFAULT_YOFFSET_LINE2 0x16
  #define DEFAULT_YOFFSET_LINE3 0x56
  #define CSMD_YOFFSET_LINE0    0x00
  #define CSMD_YOFFSET_LINE1    0x40
  #define CSMD_YOFFSET_LINE2    0x14
  #define CSMD_YOFFSET_LINE3    0x54
#endif
[/code] by:
[code]#if DEFAULT_LCD_SIZE == 1      ; 2x24
  #define DEFAULT_YOFFSET_LINE0 0x04
  #define DEFAULT_YOFFSET_LINE1 0x44
  #define DEFAULT_YOFFSET_LINE2 0x18
  #define DEFAULT_YOFFSET_LINE3 0x58
  #define CSMD_YOFFSET_LINE0    0x02
  #define CSMD_YOFFSET_LINE1    0x42
  #define CSMD_YOFFSET_LINE2    0x16
  #define CSMD_YOFFSET_LINE3    0x56
#endif

Best Regards, Thorsten.

Link to comment
Share on other sites

Hi Thorsten,

I looked at the main.asm file in the midibox64 application and replaced the code as recommended (for 2x24 LCD). Using MPLAB, I recompiled the main.asm file to build the main.hex file. This was done successfully. I then uploaded this file through MIOSStudio into the pic. Mios rebooted, but the LCD display remains at 2x16 configuration. I searched through the readme file but could not find information on LCD setting. Could I be doing something incorrect here?. Thanks

Best regards

Shum

Link to comment
Share on other sites

Hi Shum,

could it be that you forgot the first modification I mentioned (setting the display type)

The information on LCD setting are in the main.asm file (the comments...). I know that some can be really confused, but nobody took the time for writing a user documentation into the Wiki yet...

Best Regards, Thorsten.

Link to comment
Share on other sites

Good on you mate  ;)

You can find the wiki syntax here: http://www.midibox.org/dokuwiki/doku.php?id=syntax

You can fool around here and do whatever you want to test it out and get a feel for how it works: http://www.midibox.org/dokuwiki/doku.php?id=playground

Then go here and share what you've found: http://www.midibox.org/dokuwiki/doku.php?id=midibox_64

Let me know if you need a hand :)

Link to comment
Share on other sites

Hi Stryd_one,

I had a look at the wiki syntax and the rest of the stuff at the playground, sorry I do not understand all the stuff there. Anyway I have done some work with MS Frontpage. Would it be possible to document what I have done on the LCD in Frontpage and upload it to the web? Thanks

Regards

Shum

Link to comment
Share on other sites

  • 3 years later...

Hi Shum,

in main.asm, set:

#define DEFAULT_LCD_SIZE 1
for 2x20 display mode, and replace
#if DEFAULT_LCD_SIZE == 1 ; 2x20

 #define DEFAULT_YOFFSET_LINE0 0x02

 #define DEFAULT_YOFFSET_LINE1 0x42

 #define DEFAULT_YOFFSET_LINE2 0x16

 #define DEFAULT_YOFFSET_LINE3 0x56

 #define CSMD_YOFFSET_LINE0 0x00

 #define CSMD_YOFFSET_LINE1 0x40

 #define CSMD_YOFFSET_LINE2 0x14

 #define CSMD_YOFFSET_LINE3 0x54

#endif

by:
#if DEFAULT_LCD_SIZE == 1 ; 2x24

 #define DEFAULT_YOFFSET_LINE0 0x04

 #define DEFAULT_YOFFSET_LINE1 0x44

 #define DEFAULT_YOFFSET_LINE2 0x18

 #define DEFAULT_YOFFSET_LINE3 0x58

 #define CSMD_YOFFSET_LINE0 0x02

 #define CSMD_YOFFSET_LINE1 0x42

 #define CSMD_YOFFSET_LINE2 0x16

 #define CSMD_YOFFSET_LINE3 0x56

#endif

Best Regards, Thorsten.
a very old post... but a new question. my protodeck is based on 2 MB64 and I'm using a 2x20 too. so, where must I put this
#define DEFAULT_LCD_SIZE 1

I guess the 2nd part of the constant definition should be done in my main.h ...?!

Edited by protofuse
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...