I have written this code that I attached and everything works fine, but in order to do my project I need to be able to give commands to my Arduino.
For example, when I send a command through the serial monitor:
“S” the arduino starts executing my written code, but when I send the command “C” it stops executing the code.
I’ve tried different methods, but nothing works.
Can anyone please help me on this??
The closest that I got (if(Serial.available() > 0) was when pressing any button gave me only one reading, but I need different buttons to do different things.
First_test_27.02.ino (1.55 KB)