if(Serial.available()){
switch (Serial.available()){
case 'r':
col[0] = Serial.read();
break;
Serial. available tells you how many characters are available, not their value.
You can't use it in this way.
if(Serial.available()){
switch (Serial.available()){
case 'r':
col[0] = Serial.read();
break;
Serial. available tells you how many characters are available, not their value.
You can't use it in this way.