Newhaven Display Forum

Newhaven Products => Character LCDs => Topic started by: Ih55t on July 16, 2014, 11:39:50 AM

Title: Accessing special segments on NHD‐0108HZ‐FSW‐GBW 1x8
Post by: Ih55t on July 16, 2014, 11:39:50 AM
I've been using the NHD‐0108HZ‐FSW‐GBW display with success using Arduino hardware and IDE. However, there are 4 segments (large arrows) at the bottom of this display that I can't seem to control.
The data sheet says the segments start at address 0X40. They also list them as 0X40-A1 through 0X40-A4. I don't understand what the A1 means. Additionally, I don't know how to access 0X40. Apparently, I'm lacking a fundamental understanding of the addressing scheme. Any thoughts or direction?

Thanks -
Title: Re: Accessing special segments on NHD‐0108HZ‐FSW‐GBW 1x8
Post by: Michael_L on July 22, 2014, 09:48:46 AM
I understand you were given this already, but I will post the code to control those segments below for any one else to use as reference:

Code: [Select]
command(0x40); 
               write(0x02);        //A4
               write(0x00);
               write(0x00);
               write(0x00);
               write(0x00);
               write(0x00);
               write(0x00);
               write(0x00);
               command(0xc0);
               write(0x00);
               Delayms(500);

               command(0x40); 
               write(0x04);        //A3
               write(0x00);
               write(0x00);
               write(0x00);
               write(0x00);
               write(0x00);
               write(0x00);
               write(0x00);
               command(0xc0);
               write(0x00);
               Delayms(500);

               command(0x40); 
               write(0x08);        //A2
               write(0x00);
               write(0x00);
               write(0x00);
               write(0x00);
               write(0x00);
               write(0x00);
               write(0x00);
               command(0xc0);
               write(0x00);
               Delayms(500);

               command(0x40); 
               write(0x10);        //A1
               write(0x00);
               write(0x00);
               write(0x00);
               write(0x00);
               write(0x00);
               write(0x00);
               write(0x00);
               command(0xc0);
               write(0x00);
               Delayms(500);