hi i have just received my 4 inch touch screen today in the post and its the first one i have ever used from 4D systems
i have 2 LCD readouts and they work reading temp and voltage using hardware serial
the only problem is i can't use hardware serial as i have a GSM card what uses this already
so i need to use software serial or serial2 as i have a Arduino Mega Board
i have the 4.3 inch screen with the adaptor board and programmer as i got it as a full kit
whats the best way to get communication to and from the board using all this and the mega board
here is some of the code i am using
void setup() {
flushSerial();
Serial.begin(115200);
// a few options to talk to the Display, uncomment the one you want
// make sure that the ViSi Genie program has the same baud rate
genie.Begin(Serial2); //Serial2
genie.AttachEventHandler(myGenieEventHandler);
//Reset the Display (change D4 to D2 if you have original 4D Arduino Adaptor)
pinMode(4, OUTPUT); // Set D4 on Arduino to Output (4D Arduino Adaptor V2 - Display Reset)
digitalWrite(4, 1); // Reset the Display via D4
delay(100);
digitalWrite(4, 0); // unReset the Display via D4
delay (3500); //let the display start up
}
void loop() {
//is the time for a voltage check?
if (millis() - lastMillis >= 1 * 30 * 1000UL)
{
lastMillis = millis(); //get ready for the next iteration
SensorCheck();
}
}
void SensorCheck(){
tempC = ((5.0 * analogRead(sensorPin) * 100.0) / 1024) + 2; //signal level sampled from sensorPin is converted to a temperature value. Do calibration if needed.
genie.WriteObject(GENIE_OBJ_LED_DIGITS, 0x01, tempC); //Write to Leddigits0 the value of tempC
delay(50);
voltMeter = ((5.0 * analogRead(VoltsensorPin) * 1000.0) / 1023);
genie.WriteObject(GENIE_OBJ_LED_DIGITS, 0x00, voltMeter); //write to Angularmeter0 the value of voltMeter
}
any ideas on how to communicate with the screen apart from pin 0 and 1
i have tried a few ways but i cant get it to work on anything apart from 0 and 1 pins
i do move the jumper pins on the adapter board to use pins 2 and 3 but nothing