serial comunication with arduino not working after upgrade from v1.5 to 2.0b8
in
Integration and Hardware
•
4 months ago
I'm trying to upgrade to v2.0b8 and experience a serious problem in comunication with arduino, in v1.5 this was working perfectly and now is not working at all in 2.0b8
myPort.write('M');
myPort.write(motorA);
myPort.write('N');
myPort.write(motorB);
myPort.write('O');
myPort.write(motorC);
myPort.write('P');
myPort.write(relay1);
myPort.write('Q');
myPort.write(relay2);
in arduino I read
switch(GetFromSerial())
{
case 'M': // Motor A PWM control Identifier
analogWrite(3, GetFromSerial());
break;
case 'N': // Motor B PWM control Identifier
analogWrite(5, GetFromSerial());
break;
case 'O': // Motor C PWM control Identifier
analogWrite(6, GetFromSerial());
break;
case 'P': // Relay 1 motor 2
digitalWrite(7, GetFromSerial());
break;
case 'Q': // Relay 2 Motor 3
digitalWrite(8, GetFromSerial());
break;
any help will be grately appreciated
1