Advertisement
Guest User

Untitled

a guest
May 29th, 2012
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. void loop () {
  2. // send data only when you receive data: 83 84 65 82 84
  3. if (Serial.available() > 0) {
  4. // read the incoming byte:
  5. incomingByte = Serial.read();
  6. /*
  7. check the bytes
  8. */
  9. }
  10. // blink the LED that number
  11. for(int i=0; i<val; i++) {
  12. digitalWrite(ledPin,HIGH);
  13. delay(150);
  14. digitalWrite(ledPin, LOW);
  15. delay(150);
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement