I am not sure if pin mode is the reason it works but it works to some extent. The display does not lock up until I read too many lines for example i got rid of this...
while(mySerial.available() > 0 {
while(inChar != st){
inChar = mySerial.read();}
while(inChar != ed){
inChar= mySerial.read();
inData[index] = inChar;
delay(1);
index++;
inData[index] = '\0';}
temp = strtok(inData,",");
temp1[0] = atoi(temp);
for(int marker=0; marker <2; marker++){
re = strtok(NULL, ",");
re1[marker] = atoi(re);
}
and replaced it with this
while(mySerial.available() > 1){
inChar = mySerial.read();
if(inchar == st){
Esplora.writeRed(200);} // did this to see if it receives the start bit and the led comes on
for(int count = 0; count < 3; count ++){
re[count] = mySerial.read();
} // end for loop
} // end if
I noticed that if i increase (count) beyond 4 or 5 the screen locks up but below that i receive garbage and can't get it to display a real number from the receiver( this code is the transmitter) on the transmitter I am doing the same thing in reverse
Serial.print(st);
//Serial.print(blank);
//Serial.print(comma);
Serial.print(leftamps);
// Serial.print(comma);
// Serial.print(rightamps);
// Serial.print(comma);
// Serial.print(volts);
// Serial.print(comma);
// Serial.print(thermo);
// Serial.print(comma);
// Serial.print(RSSb);
Serial.print(ed);
notice I tried to comment out things to simplify the transmission but I still cannot see a real number from the receiver but the receiver gets the info from the transmitter intact and all channels work
I ask you Kitty can you help? You seem to have the most experience with this. Sorry for the long delay in my response The Holidays have me busy.