Shift position after 'clear screen' instruction

Comments

5 comments

  • Saurabh_B

    I was wondering if you could post a picture of what you are seeing.

    0
  • dreiss

    This is what the code produces after a hard power off (which seems wrong):

    This is what the modified code produces, or what the original code produces after asserting the reset pin:

    I'm not concerned about the mirror-image effect.  I can fix that with the bidirection register.

    0
  • Saurabh_B

    This might have something to do with the initialization of the display. This seems like it might be an issue with the Entry Mode command where the display isn't incrementing the position after a datawrite properly.

    If you are sending an initialization sequence can you post that as well?

    0
  • dreiss

    The first code snippet is my initialization sequence.

    0
  • Saurabh_B

    I would take a look at page 22 on the https://newhavendisplay.com/content/specs/NHD-0420CW-AB3.pdf  datasheet of the display for a example initialization sequence. The sequence does address the flipped bits. I would suggest adding those along with what you already have.

    I will wire one up to see if I can recreate what you were seeing.

    0

Please sign in to leave a comment.