Test/demo sketch for 12864

im having dramas getting any sketch to work,
im very new to this, so i may need some guidance what im doin wrong
im using the following:
SainSmart UNO
12864 LCD Display
Sensor Shield V5
http://www.ebay.com.au/itm/SainSmart-UNO-12864-LCD-Display-Sensor-Shield-V5-kit-Arduino-AVR-/251146556951?_trksid=p5197.m1992&_trkparms=aid%3D111000%26algo%3DREC.CURRENT%26ao%3D1%26asc%3D14%26meid%3D7505886767919256710%26pid%3D100015%26prg%3D1006%26rk%3D1%26sd%3D251146556951%26#ht_5044wt_1037
and a idc 3x2 cable

i have pluged the shield into the uno, and used the serial ports to connect.
i cant seem to find any sketch for this set up.
i've tried a couple of different libaries, the lcd lights up, but no demo sketches work,

/*
LCD  Arduino
PIN1 = GND
PIN2 = 5V
RS(CS) = 8; 
RW(SID)= 9; 
EN(CLK) = 3;
PIN15 PSB = GND;
*/

#include "LCD12864RSPI.h"
#include "DFrobot_bmp.h"
#include "DFrobot_char.h"

#define AR_SIZE( a ) sizeof( a ) / sizeof( a[0] )

unsigned char wangzhi[]=" ww.sainsmart.com ";//

unsigned char en_char1[]="sainsmart 12864";// 

unsigned char en_char2[]="Test, Copyright ";// 

unsigned char en_char3[]="design SainSmart";// 

void setup()
{
  LCDA.Initialise(); // INIT SCREEN
  delay(100);
  LCDA.DrawFullScreen(logo);//LOGO
  delay(5000);
}

void loop()
{
LCDA.CLEAR();//????
delay(100);
LCDA.DisplayString(0,0,en_char1,16);//
delay(10);
LCDA.DisplayString(1,0,en_char2,16);//
delay(10);
LCDA.DisplayString(2,0,en_char3,16);//
delay(10);
LCDA.DisplayString(3,0,wangzhi,16);//
delay(5000);
LCDA.CLEAR();//????
delay(100);
LCDA.DisplayString(0,0,show1,16);//
delay(10);
LCDA.DisplayString(1,0,show2,16);//
delay(10);
LCDA.DisplayString(2,0,show3,16);//
delay(10);
LCDA.DisplayString(3,0,wangzhi,16);//LOGO
delay(5000);
}

the pins are incorrect?
so what do i do to fix it?

the pins are incorrect?
so what do i do to fix it?

Difficult to say without a picture/description of your setup.

Oliver

im using the stock idc to idc cable

I never heard about this type of cable :cold_sweat:

Oliver

its just the type of plug on the end of the cable,

using the serial interface (top right)

the serial port on the bottom right

my backpack is on the rear of the screen not the front, i couldnt find a pic

Ok, so you connected your cable to this 2x3 socket where pins are labled with D2, D3, D4? If these pins refer to the digital pins of your Arduino Board, then i see a mismatch between D2, D3 and D4 and your inital sketch which probably expect (according to the comment) pins at D8, D9 and D3.

All in all it is not clear (at least to me) how the display is connected to the Arduino and which pins are really used by your software.

Oliver

thats what i thought, but which pin is which on the shield?

At least you have to ensure, that the software will use pins 2, 3 and 4....

Oliver

some libaries like, utft have examples for 12864 serial, but even there pins are different, and most of the hook up pics dont use the idc cable

You have to track the digital signals from the Arduino Software to your display. I would call this "usual engineering work" :wink:

Oliver