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?