uh.. is it like that? still doesn't work sorry I'm pretty new to this.
#include <WString.h>
#include <String.h>
byte mc[] = {1,2};
const byte constant[] = {3,3};
String x;
void setup()
{
Serial.begin(9600);
Serial.println("Startup");
}
void loop()
{
{
if (Serial.available()>10)
{
x=Serial.read();
}
}
if(x ==('1 to 2'))
{
int pos = (constant[1] - mc[1]);
Serial.println('pos');
}
if(x ==('2 to 2')) //I'm not really sure if this works or not.. I'm trying to get as many different ways until I find one that works.
{
int pos; pos<2;pos++;
}
}