/////////////////////////////////////////PAGE2 void readPORT() { int code; if (myPort.available() > 0) { code = myPort.read(); if(code == startbit) { count=0;} else if(count==0) { serialmsg.setMSG(0,code); count=1;} else if(count==1) { serialmsg.setMSG(1,code); count=2;} else if(count==2) { serialmsg.setMSG(2,code); evalmsg(serialmsg);} } }