Advertisement
RuiViana

Temp

Mar 11th, 2017
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. String leitura = "";
  2. String Compare = "modo automatico";
  3. //------------------------------
  4. void setup()
  5. {
  6.   Serial.begin(115200);
  7. }
  8. //----------------------------
  9. void loop()
  10. {
  11.   if (Serial.available() > 0)
  12.   {
  13.     leitura = Serial.readString();
  14.     if ( leitura = Compare)
  15.       Serial.println("Comparacao igual");
  16.     else
  17.       Serial.println("Comparacao diferente");
  18.   }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement