I use a Mega Shield sensor and a LCD Serial Shield.
The LCD serial Link
I use this code but no display
int switchPin = 7;
int value = 0;
void setup() {
Serial.begin(9600);
pinMode(switchPin, INPUT);
}
void loop() {
if (HIGH == digitalRead(switchPin)){
Serial.print("$CLEAR\r\n");
Serial.print("$GO 1 1\r\n");
Serial.print("$PRINT Flamingo EDA\r\n");
Serial.print("$GO 2 4\r\n");
Serial.print("$PRINT Hello World!\r\n");
Serial.print("$CURSOR 1 1\r\n");
}
}
The sensor shield and LCD serial are connected with I2C cable.
Is there something missing in code?
Do i need to initialize I2C?
I already test serial1,serial2, serial3 with also no display.
Thx
DS