Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String leitura = "";
- String Compare = "modo automatico";
- //------------------------------
- void setup()
- {
- Serial.begin(115200);
- }
- //----------------------------
- void loop()
- {
- if (Serial.available() > 0)
- {
- leitura = Serial.readString();
- if ( leitura = Compare)
- Serial.println("Comparacao igual");
- else
- Serial.println("Comparacao diferente");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement