I was trying to make an Arduino Robot that is Bluetooth controlled but I've some problems!
I can't figure out how to parse strings in Arduino like c++/java/python! I tried this, If the first letter is L, set the next value to left motor, same for R
but for example "L255" is received as L - 2 - 5 - 5 and it sets L to 2 and ignores 5 - 5.
Any ideas on what I should do?
EDIT: Thought of something else, Sending L or R will toggle the motors! but that's just terrible, it'll be my last option
Update: This is how it works now: L(0-5) means Left motor speed 5 * 51, 6-9 are backwards! its go backwards at (L(6-9) -5 * 51)