Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void loop () {
- // send data only when you receive data: 83 84 65 82 84
- if (Serial.available() > 0) {
- // read the incoming byte:
- incomingByte = Serial.read();
- /*
- check the bytes
- */
- }
- // blink the LED that number
- for(int i=0; i<val; i++) {
- digitalWrite(ledPin,HIGH);
- delay(150);
- digitalWrite(ledPin, LOW);
- delay(150);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement