Advertisement
jottdee

Untitled

Apr 22nd, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #define dioda 13
  2.  
  3. void setup() {
  4. Serial.begin(9600);
  5. pinMode(dioda, OUTPUT);
  6. }
  7.  
  8. void loop() {
  9. if(Serial.available() ) {
  10. int d = Serial.available();
  11. Serial.println(d);
  12.  
  13. digitalWrite(dioda, HIGH);
  14. delay (d);
  15. digitalWrite(dioda, LOW);
  16. delay (d);
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement