My "Library" for ST7920 Graphical displays, works fine, but...


Closed Thread
Results 1 to 32 of 32

Hybrid View

  1. #1
    Join Date
    Feb 2013
    Posts
    1,158


    Did you find this post helpful? Yes | No

    Default Re: My "Library" for ST7920 Graphical displays, works fine, but...

    Bought larger version, which has 128x64 pixels arrangement.
    But the issue is, that above code can write only to upper 32 lines of display.

    https://blog.projectryu.com/using-di...d-with-pic18f/

    This appears to be quite similar, but not exactly, to my module. And by sending some wild bits, I found out two things:

    1. it is somehow possible to adjust contrast via software, but I guess, I'm sending wrong bytes, since display hangs after this (but remaining picture has high contrast)

    LCDOUT $FE, $80
    LCDOUT $FE, 10

    above mentioned code mentions some X variable, which seems to be the "divider" between upper and lower parts of the screen, based on this pic: https://blog.projectryu.com/wp-conte...ddress-Map.jpg

    But I can't get idea, where to write it?

  2. #2
    Join Date
    Feb 2013
    Posts
    1,158


    Did you find this post helpful? Yes | No

    Default Re: My "Library" for ST7920 Graphical displays, works fine, but...

    Solved issue with writing to lower lines.
    These screens are actually divided into 64x32 blocks, which are addressed as 256x32, but physically located as
    AB
    CD
    So this is it.

  3. #3
    Join Date
    Feb 2013
    Posts
    1,158


    1 out of 1 members found this post helpful. Did you find this post helpful? Yes | No

    Default Re: My "Library" for ST7920 Graphical displays, works fine, but...

    Will post "Upgraded" version soon - it now supports individual attributes for all chars, like language, inversion, underline, striketrough. Working on variable width character support too.

    Name:  improved.jpg
Views: 2251
Size:  684.1 KB

  4. #4
    Join Date
    Feb 2013
    Posts
    1,158


    Did you find this post helpful? Yes | No

    Default Re: My "Library" for ST7920 Graphical displays, works fine, but...

    Ordered 128x64 display from the different manufacturer.
    It has proper dimensions - the screen above is almost square, as you can see, and the new one has proper proportions.
    But it also has 20 pin connector, instead of standard 16 pin, and while it works, seems that addressing mode is different in graphic mode, haven't figured it yet. Will post update once "solved".

Similar Threads

  1. Graphical Displays with PBP3
    By richard in forum PBP3
    Replies: 114
    Last Post: - 25th February 2025, 22:38
  2. How to do the "SerIN" and "SerOut " for the usb ?
    By vicce67 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 13th March 2015, 03:01
  3. Replies: 0
    Last Post: - 14th November 2013, 04:32
  4. Replies: 3
    Last Post: - 15th October 2012, 09:06
  5. Replies: 1
    Last Post: - 16th February 2005, 21:05

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts