Advertisement
RuiViana

Teste_travamento_no_Setup

Apr 5th, 2016
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. byte xpto = 0;
  2. //-----------------------------------------
  3. void setup()
  4. {
  5. Serial.begin(9600);
  6. while(xpto == 0)
  7. {
  8. if (Serial.available() > 0)
  9. {
  10. xpto = Serial.read();
  11. }
  12. }
  13. }
  14. //-----------------------------------------
  15. void loop()
  16. {
  17. Serial.println(millis());
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement