Author Topic: Problem with NHD-0420CW-AR3 - Double spaced characters now.  (Read 452 times)

JKleiber

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
So...I fixed the original problem I posted about.  Now I have most of my problems solved.  The remaining serious problem is that I get double spaced characters:  "John"  displays as "J o h n".  Anyone have a suggestion?  I have a "work around" in which I reset the DRAM pointer each character.  Not what I want but it works.  Still interested in any ideas anyone may have for a real fix.

int LCD_GoToXY (char L, char C)  // L(ine) = 1..4, C(ollumn)=1..20
{
    if( L > 4 || C > 20) return(0);
    C--;
    switch(L)
    {
        case 1: LCD_SendCMD(LCD_Line1 + C); break;
        case 2: LCD_SendCMD(LCD_Line2 + C); break;
        case 3: LCD_SendCMD(LCD_Line3 + C); break;
        case 4: LCD_SendCMD(LCD_Line4 + C); break;
    }
    return(1);
}

void LCD_WriteStr(char L, char C, char* s)  //send start location (L,C) and pointer to string to be displayed.
{
    int i = 0;   
    while(s)
    {
        LCD_GoToXY(L, C++);
        LCD_SendChar(s[i++]);   
    }
}



I have a new project in which I am using the above NH OLED display.   I followed exactly the initialization sequence suggested on pages 20 & 21 in the NH data sheet but my display is reversed, a mirror image.   I saw a post here from 2016 in which the author had the same issue but no answers followed an initial reply. 
I am driving the display with a PIC16 8 bit MC using the 8080 8bit parallel interface scheme.  Everything seems to work with the exception of the problem described above.

Any suggestions?
John
« Last Edit: May 10, 2018, 04:41:43 AM by JKleiber »

 

NHD‐0420CW‐AB3 I2C Interface

Started by andersonpdBoard OLEDs

Replies: 1
Views: 4452
Last post January 23, 2015, 10:00:06 AM
by Michael_L
NHD‐3.5‐320240MF‐ATXL#‐CTP‐1 Problem with standby mode

Started by guenterBoard TFTs

Replies: 0
Views: 3965
Last post June 16, 2016, 12:14:36 PM
by guenter
NHD‐0420CW‐AG3 Contrast question

Started by RichardRBoard OLEDs

Replies: 2
Views: 4110
Last post January 16, 2016, 09:52:02 AM
by RichardR
NHD‐0420CW‐AG3: blinking part of text?

Started by RichardRBoard OLEDs

Replies: 2
Views: 4098
Last post February 28, 2017, 03:27:02 PM
by BobG
NHD‐2.4‐240320SF‐CTXL#‐FTN1 touch-screen problem

Started by hbcelebiBoard TFTs

Replies: 5
Views: 7368
Last post December 10, 2014, 11:19:05 AM
by Michael_L