Jump to content

LCD - Programmierung WINTEK WD-C2704M-1HNN


MTE

Recommended Posts

Hi

Ich habe mir dieses Display von Pollin zugelegt

http://www.pollin.de/shop/detail.php?pg=NQ==&a=NzY3OTc4OTk

(sehr billig,sehr groß :) aber leider keine hintergrundbeleuchtung....)

Es hat 4x27 Zeichen , wird aber von 2 Kontrollern angesteuert (obere hälfte 2x27 und untere 2x27 Zeichen…)

Ich habe es nach Pinbelegung 2x2clcd angeschlossen und zum Test die MB-Seq-Firmware draufgespielt….Funzt  :)

Ich würde nun gerne die MB64-Firmware auf dieses Display anpassen, habe aber noch nicht den richtigen Durchblick in der Programmierung, kann mir evtl. jemand schnell hier die Zeilen posten ,die ich zu ändern habe, damit es sozusagen als 4x20-Zeichen Display funktioniert.

Lieben Gruß

MTE

Link to comment
Share on other sites

in main.asm

; define the display size you are using:
;    0: 2x16
;    1: 2x20
;    2: 4x16
;    3: 4x20
#define DEFAULT_LCD_SIZE 3
[/code] und wahrscheinlich:
[code]#if DEFAULT_LCD_SIZE == 3      ; 4x20
  #define DEFAULT_YOFFSET_LINE0 0x02
  #define DEFAULT_YOFFSET_LINE1 0x42
  #define DEFAULT_YOFFSET_LINE2 0x82
  #define DEFAULT_YOFFSET_LINE3 0xc2
  #define CSMD_YOFFSET_LINE0    0x00
  #define CSMD_YOFFSET_LINE1    0x40
  #define CSMD_YOFFSET_LINE2    0x80
  #define CSMD_YOFFSET_LINE3    0xc0
#endif

falls das nicht funktioniert, muesstest Du selbst weitertuefteln (try&error)

Gruss,

        Thorsten.

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...
×
×
  • Create New...