Recent Posts

Pages: [1] 2 3 ... 10
1
TFTs / Re: Load image FT812
« Last post by Ted_M on December 13, 2018, 03:25:18 PM »
Hi Ivo,

FTDI has a good selection of example code available on their website including an Imageviewer demo for the EVE2.  You will need to modify the Platform.h file in their example code to match our example code that is configured specifically for each size/resolution of our EVE2 display modules. 

Our example code is located on the Newhaven GitHub site at :https://github.com/NewhavenDisplay/EVE2-TFT-Modules

FTDI's Example Code can be found here: https://www.ftdichip.com/Support/SoftwareExamples/FT800_Projects.htm#Example17

Best Regards,
2
Hello there!

Can you confirm whether you are seeing the same issue with every sample BMP image for the 2.4” TFT, or is this issue strictly for the 1st sample image “2_4_240320CF_0.bmp”?

Also, did you happen to create a BMP file on your own and save it under one of the sample file names, such as “2_4_240320CF_0.bmp”? Or are you attempting to display the sample files that are already saved on the SD card?

Lastly, can you upload a picture of what you are seeing on your display?

Thanks!
3
Graphic LCDs / Re: NHD-C12864A1Z-FS(RGB)-FBW-HT1 Arduino Uno example
« Last post by Alee_S on December 12, 2018, 11:06:22 AM »
Hello there!

I have attached some sample code to help get you started. Although this code is written for a different model, it will work for the NHD-C12864A1Z-FS(RGB)-FBW-HT1 display as well.

Hope this helps!

Code: [Select]
/*
 *  Program written for C12864A1Z-FSW-FBW-HTT  Chip-On-Glass Display.
 *  Code written for Arduino Uno.
 *  Code written for Serial Interface.
*/

/****************************************************
*               Pinout on Arduino Uno               *
*****************************************************/

#define RES 8   //Reset signal
#define CS  9   //Chip select signal
#define RS 10   //Register select signal
#define SC 11   //Serial clock signal
#define SI 12   //Serial data signal

/****************************************************
*               Hex Table for NHD Pic               *
*****************************************************/

unsigned char nhd[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0E, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x0E, 0x00, 0x07, 0xF8, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x07, 0xF8, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x03, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x70, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xF8, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x07, 0xF8, 0x00, 0x00, 0x00, 0x00, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x1E, 0x00, 0x06, 0xD8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0xD8, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x06, 0xD8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0xD8, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x03, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xE0, 0x00, 0x00,
0x00, 0x00, 0x1E, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x12, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x1E, 0x01, 0x80, 0x78, 0x00, 0x00,
0x00, 0x00, 0x00, 0x03, 0x81, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3E, 0x07, 0xC0, 0x00, 0x00,
0x00, 0x00, 0x00, 0x3E, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x03, 0xC0, 0x00, 0x00,
0x00, 0x00, 0x00, 0x01, 0x80, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x1E, 0x01, 0x80, 0x38, 0x00, 0x00,
0x00, 0x00, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x04, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x38, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1E, 0x07, 0xC0, 0x00, 0x00,
0x00, 0x00, 0x00, 0x1B, 0x83, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x19, 0x81, 0x38, 0x00, 0x00,
0x00, 0x00, 0x02, 0x1F, 0x01, 0x78, 0x00, 0x00, 0x00, 0x00, 0x1E, 0x3C, 0x03, 0xE0, 0x00, 0x00,
0x00, 0x00, 0x1E, 0x30, 0x07, 0x80, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x06, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x20, 0x07, 0xF8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x07, 0xF8, 0x00, 0x00,
0x00, 0x00, 0x00, 0x3F, 0x80, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x18, 0x3F, 0x80, 0xC0, 0x00, 0x00,
0x00, 0x00, 0x0E, 0x00, 0x00, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x0E, 0x00, 0x07, 0xF8, 0x00, 0x00,
0x00, 0x00, 0x18, 0x00, 0x07, 0xF8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x0F, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0D, 0x80, 0x18, 0x00, 0x00,
0x00, 0x00, 0x00, 0x08, 0x80, 0xF8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0C, 0x83, 0xF0, 0x00, 0x00,
0x00, 0x00, 0x1E, 0x3F, 0x87, 0x80, 0x00, 0x00, 0x00, 0x00, 0x18, 0x3F, 0x87, 0xC0, 0x00, 0x00,
0x00, 0x00, 0x0C, 0x00, 0x00, 0xF8, 0x00, 0x00, 0x00, 0x00, 0x1E, 0x00, 0x00, 0x78, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x07, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x19, 0x87, 0x80, 0x00, 0x00,
0x00, 0x00, 0x00, 0x3D, 0x83, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3D, 0x80, 0x78, 0x00, 0x00,
0x00, 0x00, 0x00, 0x35, 0x80, 0x18, 0x00, 0x00, 0x00, 0x00, 0x16, 0x35, 0x80, 0x00, 0x00, 0x00,
0x00, 0x00, 0x1E, 0x37, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0A, 0x37, 0x86, 0x40, 0x00, 0x00,
0x00, 0x00, 0x1E, 0x00, 0x06, 0xD8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0xD8, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x06, 0x98, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0xF8, 0x00, 0x00,
0x00, 0x00, 0x00, 0x3F, 0x83, 0xF0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x3F, 0x80, 0xC0, 0x00, 0x00,
0x00, 0x00, 0x12, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x1E, 0x0E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0C, 0x3F, 0x07, 0xF8, 0x00, 0x00,
0x00, 0x00, 0x00, 0x33, 0x87, 0xF8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x31, 0x83, 0x80, 0x00, 0x00,
0x00, 0x00, 0x00, 0x31, 0x80, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x31, 0x87, 0xF8, 0x00, 0x00,
0x00, 0x00, 0x00, 0x3F, 0x87, 0xF8, 0x00, 0x00, 0x00, 0x00, 0x02, 0x3F, 0x80, 0x00, 0x00, 0x00,
0x00, 0x00, 0x1E, 0x00, 0x06, 0xD8, 0x00, 0x00, 0x00, 0x00, 0x1E, 0x00, 0x06, 0xD8, 0x00, 0x00,
0x00, 0x00, 0x02, 0x00, 0x06, 0xD8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0xD8, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x06, 0xD8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, 0xD8, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x06, 0xD8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0C, 0xD8, 0x00, 0x00,
0x00, 0x00, 0x1E, 0x00, 0x19, 0xD8, 0x00, 0x00, 0x00, 0x00, 0x0C, 0x00, 0x7B, 0x98, 0x00, 0x00,
0x00, 0x00, 0x06, 0x00, 0x73, 0x18, 0x00, 0x00, 0x00, 0x00, 0x1E, 0x00, 0xC6, 0x18, 0x00, 0x00,
0x00, 0x00, 0x00, 0x01, 0xCE, 0x7C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x8C, 0x7C, 0x00, 0x00,
0x00, 0x00, 0x00, 0x03, 0x0C, 0x7C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x0C, 0x7C, 0x00, 0x00,
0x00, 0x00, 0x00, 0x03, 0x0C, 0x7C, 0x00, 0x00, 0x00, 0x00, 0x1E, 0x03, 0x0C, 0x38, 0x00, 0x00,
0x00, 0x00, 0x1E, 0x03, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x1E, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x03, 0x3F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x3F, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x03, 0x3F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x3F, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x03, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x88, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x0F, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0F, 0xE0, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x0F, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0xE0, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x07, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
};

/****************************************************
*                 Function Commands                  *
*****************************************************/

void data_write(unsigned char d) //Data Output Serial Interface
{
unsigned int n;
digitalWrite(CS, LOW);
digitalWrite(RS, HIGH);
for(n=0;n<8;n++){
if((d&0x80)==0x80)
digitalWrite(SI, HIGH);
else
digitalWrite(SI, LOW);
while(0);
d=(d<<1);
digitalWrite(SC, LOW);
while(0);
digitalWrite(SC, HIGH);
while(0);
digitalWrite(SC, LOW);
}
digitalWrite(CS, HIGH);
}


void comm_write(unsigned char d) //Command Output Serial Interface
{
unsigned int n;
digitalWrite(CS, LOW);
digitalWrite(RS, LOW);
for(n=0;n<8;n++){
if((d&0x80)==0x80)
digitalWrite(SI, HIGH);
else
digitalWrite(SI, LOW);
while(0);
d=(d<<1);
digitalWrite(SC, LOW);
while(0);
digitalWrite(SC, HIGH);
while(0);
digitalWrite(SC, LOW);
}
digitalWrite(CS, HIGH);
}


void DispPic(unsigned char *lcd_string)  //Function to write pic data into display
{
unsigned int i,j,x;
unsigned char count;
unsigned char page = 0xB0;
comm_write(0x40);
for(i=0;i<8;i++){
comm_write(page); 
comm_write(0x10);
comm_write(0x00);
for(j=0;j<128;j++)
{
for(x=8;x>i;x--)
{lcd_string++;}

      data_write(*lcd_string);

for(x=0;x<i;x++)
{lcd_string++;}
   
}
for(x=0;x<1024;x++)lcd_string--;
page++; count++;
    }
comm_write(0xAF);
}


void ClearLCD(unsigned char *lcd_string)  //Function to clear display
{
unsigned int i,j,x;
unsigned char count;
unsigned char page = 0xB0;
comm_write(0x40);
for(i=0;i<8;i++){
comm_write(page);   
comm_write(0x10);
comm_write(0x00);
for(j=0;j<128;j++)
{
for(x=8;x>i;x--)
{lcd_string++;}

data_write(0x00);
     

for(x=0;x<i;x++)
{lcd_string++;}

}
for(x=0;x<1024;x++)lcd_string--;
page++; count++;
    }
comm_write(0xAF);
}


/****************************************************
*           Initialization For controller           *
*****************************************************/

void init_LCD()  {
comm_write(0xA1);   // ADC select
comm_write(0xAE);   // Display OFF
comm_write(0xC8);   // COM direction scan
comm_write(0xA2);   // LCD bias set
comm_write(0x2F);   // Power Control set
comm_write(0x26);   // Resistor Ratio Set
comm_write(0x81);   // Electronic Volume Command (set contrast) Double Btye: 1 of 2
comm_write(0x11);   // Electronic Volume value (contrast value) Double Byte: 2 of 2
comm_write(0xAF);   // Display ON
}

/*****************************************************
*           Setup Function, to run once              *
*****************************************************/

void setup() {
  DDRD = 0xFF;          // configure PORTD as output
  pinMode(RES, OUTPUT); // configure RES as output
  pinMode(CS, OUTPUT);  // configure CS as output
  pinMode(RS, OUTPUT);  // configure RS as output
  pinMode(SC, OUTPUT);  // configure SC as output
  pinMode(SI, OUTPUT);  // configure SI as output
  digitalWrite(RES, LOW);           
  delay(100);                     
  digitalWrite(RES, HIGH);           
  delay(100);                     
}

/*****************************************************
*           Loop Function, to run repeatedly         *
*****************************************************/

void loop() {
delay(10);
init_LCD();
while(1)
{
    ClearLCD(nhd);
    delay(500);    //delay of 500 ms
DispPic(nhd);
delay(1000);   //delay of 1000 ms or 1 second
}
}
4
Graphic LCDs / NHD-12864AZ-FL-YBW goes blank after a few seconds
« Last post by cleo on December 12, 2018, 09:18:39 AM »
I am trying to replace a AG-12864A LCD with a NHD-12864AZ-FL_YBW but I can't get it to work using the same code. The NHD-12864 displays messages for a few seconds on the whole length of the display, after that the right side goes blank and I can see only the left side displaying messages and in short time the whole display goes blank. Do you have any suggestion regarding this issue ?

Thanks,

Cleo
5
OLEDs / Re: NHD-0420DZW-AY5 - Line3 and 4 reversed right and left.
« Last post by Alee_S on December 11, 2018, 04:44:26 PM »
Hello there!

Unfortunately I could not replicate the issue you are having, as I ported your attached code into my Arduino Mega 2560 using 4-bit parallel interface, and the display is working fine for me. This leads me to believe the code you've written isn't the issue.

I changed the "H_SHL_L" jumper as well, which is responsible for flipping the direction of the display, to see if it would give the same issue you've been having, but that also gave me the expected results.

Please contact us at (nhtech@newhavendisplay.com) and we can provide assistance in setting up an RMA and returning the display for analysis. I apologize for the inconvenience.

 
6
OLEDs / NHD-5.0-HDMI-N-RTXL-CTU Digital Dimming Control
« Last post by georgek on December 11, 2018, 12:36:07 PM »
We need to control the backlight of the NHD-5.0-HDMI-N-RTXL-CTU using the digital dimming method of the T.I. TPS61165 LED driver via the CN4 header. We are following the instructions outlined in the 9.2.1.2.1 LED Brightness Dimming Mode Selection of the tps61165.pdf data sheet.

We can successfully control the dimming of the NHD-5.0-HDMI-N-RTXL-CTU when the HDMI cable is disconnected.
Unfortunately when the HDMI cable is connected the digital dimming doesn't work.

Can you help?

Thank you,
George
7
TFTs / Re: Filling with blue yields flashing white screen (NHD-2.4-240320CF-CSXN#-F)
« Last post by Paul_B on December 11, 2018, 07:17:54 AM »
Glad to hear you got your display up and running!

Thanks for sharing your solution, it will definitely help others  :D
8
TFTs / Re: Filling with blue yields flashing white screen (NHD-2.4-240320CF-CSXN#-F)
« Last post by asfarley on December 10, 2018, 11:01:51 AM »
It turns out that this was related to an entirely separate issue; our PCB was experiencing some power-stability issues due to a misconfigured GPIO on our MCU. After fixing that, all of this weird flashing-screen behavior disappeared.
9
TFTs / Load image FT812
« Last post by ivo64 on December 10, 2018, 10:13:41 AM »
Hi,

I'm new on this forum and I have one question about EVE FT812. I have manged to get display working with all the primitives and widgets
but I couldn't load  jpeg or png images. If someone has example or any working code for loading images I would appreciate to share with me.
I have searched this forum before write this topic but I couldn't found anything to solve my problem.. :-\

Best regards,

Ivo
Slovenia

10
Graphic LCDs / Newhaven Display Issues
« Last post by sherloc987 on December 08, 2018, 05:59:34 AM »
I am a newbe who is attempting to interface with a LCD for the first time. I ordered three Newhaven 2 x 16 displays, part number NHD-0216BZ-FL-YBW.

I am having some trouble getting the thing to display anything. I was told by a Newhaven engineer that if contrast is set correctly that it will light up the first line when power and ground are connected.

I connected the first one according to the pin lables on the board. it flashed some crazy gunk on the display and then went quiet, never to twitch again. I then noticed that the pin marking do not match the data sheet. Upon contacting Newhaven, I was told that the data sheet was correct and to disregard circuit board labeling.

The data sheet calls for a 10~20K variable resistor. I don't have a variable resistor in the shop so connected several resisters and series. I connected the contrast pin to ground throuh 20K of resistors... no display. I connected it to ground through 10K of resistors... no display. I tried it at resistance levels between 10 and 20 K with no display. Any suggestions will be appreciated

I assume that 10~20K, as indicated in the data sheet means a pot with minimum resistance of 10K and maximum resitance of 20K, is this correct?
https://www.techavy.com/kickass-proxy-kat-unblocked
https://www.techlinc.in/free-netflix-cookies/
https://techranc.com/1337x-proxy/
https://wanderviews.net/best-front-and-rear-dash-cams/
Thanks for your help

Lance
Pages: [1] 2 3 ... 10