For strings, you could use the strchr function.
can you give example of strchr please?
if i have a char = "abc" how i get "c" in this char?
@PaulSthat's not what I mean
example...
int val = analogRead(11);
if (val == 1) <=== if there is byte '1' in val then LED1 ON >> example val = 213 from analogRead
{
digitalWrite(LED1, HIGH)
}
else <=== if there is not byte '1' in val then LED1 OFF >> example val = 253 from analogRead
{
digitalWrite(LED1, LOW)
}
if (val == 5) <=== if there is byte '5' in val then LED5 ON >> example val = 513 from analogRead
{
digitalWrite(LED5, HIGH)
}
else <=== if there is not byte '5' in val then LED5 OFF >> example val = 673 from analogRead
{
digitalWrite(LED5, LOW)
}
thats what i mean.. so i want to get part of value from a value