Manual

21 | P a g e
if(BluetoothCmd[0] == 's' && BluetoothCmd[1] == 0x0A){
lr = 0;
rr = 0;
left = 0;
right = 0;
}
if(BluetoothCmd[0] == 'f' && BluetoothCmd[1] == 0x0A){
lr = 0;
rr = 0;
left = 240;
right = 240;
}
if(BluetoothCmd[0] == 'b' && BluetoothCmd[1] == 0x0A){
lr = 1;
rr = 1;
left = 240;
right = 240;
}
if(BluetoothCmd[0] == 'l' && BluetoothCmd[1] == 0x0A){
lr = 0;
rr = 1;
left = 240;
right = 240;
}
if(BluetoothCmd[0] == 'r' && BluetoothCmd[1] == 0x0A){
lr = 1;
rr = 0;
left = 240;
right = 240;
}
//voice control end
if(BluetoothCmd[0] == 'w' && BluetoothCmd[i] == 0x0A){