Advertisement
RuiViana

Serial_recebe

Jun 19th, 2016
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. byte incomingByte = 0;
  2. void setup()
  3. {
  4. Serial.begin(9600);
  5. }
  6.  
  7. void loop()
  8. {
  9. if (Serial.available() > 0)
  10. {
  11. incomingByte = Serial.read();
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement