would the best way to:
- Code: Select all
string LazerPin = AS3.Getfield (514);
string LazerPort = AS3.Getfield (515);
join the string
- Code: Select all
stringLazerPortPin = LazerPin + LazerPort;
then use a switch statement to find what the status of the pin and port is?
such as:
- Code: Select all
Swith (LazerPortPin)
{
case 11:
bool LazerLED = AS3.GetLED(1);
break;
case 12:
bool LazerLED = AS3.GetLED(2);
break;
case 13:
bool LazerLED = AS3.GetLED(3);
break;
.....
case 517:
bool LazerLED = AS3.GetLED(136);
break
}
Is there a faster way?
(defined LED?)
like LED 220?
You can use LED 51 for M4 and LED 50 for M3, but not clear about M10/M11.
Thanks as always,