Problems with matrix

Hi to all:

This code is for Arduino Nano.

In a serial terminal with this steps run fine if the matrix opciones is not implemented.....
config\r
IO4\r
pwm\r

If implemented the matrix opxiones dont work. ¿?

Can help me, please?.....

Best Regards.

sketch.ino (4.96 KB)

Not a thing you are doing in that sketch requires that the strings be wrapped in String objects. So, quit it.

Check out:
http://playground.arduino.cc/Code/AvailableMemory

Hi,
Ok,

if matrix => 66 else 249

The best soluction, change strings for numbers ¿?

Thanks and best regards.

change strings for numbers

Where appropriate, yes. Numeric values are far easier to manipulate mathematically than are strings.

For the non-numeric strings, quit wrapping them in Strings.