HELP: problem LCD NHD-C0220BiZ-FS RGB-FBW-3VM in FC AVR

Moderator: Benj

Post Reply
clatos2000
Posts: 8
Joined: Mon Oct 11, 2010 4:58 pm
Contact:

HELP: problem LCD NHD-C0220BiZ-FS RGB-FBW-3VM in FC AVR

Post by clatos2000 »

Hello, I have a display "NHD-C0220BiZ-FSRGB-FBW-3VM" and want to connect to an Arduino pro mini 3v3 328, through the I2C, I use the "Flowcode AVR V5" this program the LCD component does not inicia with the controller ST7036i, I need help. The component of flowcode for LCD and hope you can help me turn it to make it compatible with my display: FC5_AVR_LCDDisplay.c
Or maybe an example where this issue will be resolved from the program.
Thank you

clatos2000
Posts: 8
Joined: Mon Oct 11, 2010 4:58 pm
Contact:

Re: HELP: problem LCD NHD-C0220BiZ-FS RGB-FBW-3VM in FC AVR

Post by clatos2000 »

Hello, again
I was communicating with people newhaven and I passed this information to manage the display.
my question is how could modify the "FC5_AVR_LCDDisplay.c" file to work with my display.?

This is what they sent me:

Example
Initialization
Program
/****************************************************
* Initialization For ST7036i *
*****************************************************/
void init_LCD()
{
I2C_Start();
I2C_out(Slave);//Slave=0x78
I2C_out(Comsend);//Comsend = 0x00
I2C_out(0x38);
delay(10);
I2C_out(0x39);
delay(10);
I2C_out(0x14);
I2C_out(0x78);
I2C_out(0x5E);
I2C_out(0x6D);
I2C_out(0x0C);
I2C_out(0x01);
I2C_out(0x06);
delay(10);
I2C_Stop();
}
/*****************************************************/
/****************************************************
* Output command or data via I2C *
*****************************************************/
void I2C_out(unsigned char j)
//I2C Output
{
int n;
unsigned char d;
d=j;
for(n=0;n<8;n++){
if((d&0x80)==0x80)
SDA=1;
else
SDA=0;
d=(d<<1);
SCL = 0;
SCL = 1;
SCL = 0;
}
SCL = 1;
while(SDA==1){
SCL=0;
SCL=1;
}
SCL=0;
}
/*****************************************************/
[12]
/****************************************************
* I2C Start *
*****************************************************/
void I2C_Start(void)
{
SCL=1;
SDA=1;
SDA=0;
SCL=0;
}
/*****************************************************/
/****************************************************
* I2C Stop *
*****************************************************/
void I2C_Stop(void)
{
SDA=0;
SCL=0;
SCL=1;
SDA=1;
}
/*****************************************************/
/****************************************************
* Send string of ASCII data to LCD *
*****************************************************/
void Show(unsigned char *text)
{
int n,d;
d=0x00;
I2C_Start();
I2C_out(Slave); //Slave=0x78
I2C_out(Datasend);//Datasend=0x40
for(n=0;n<20;n++){
I2C_out(*text);
++text;
}
I2C_Stop();
}


clatos2000
Posts: 8
Joined: Mon Oct 11, 2010 4:58 pm
Contact:

Re: HELP: problem LCD NHD-C0220BiZ-FS RGB-FBW-3VM in FC AVR

Post by clatos2000 »

Somebody could help me

Post Reply