Posted By

carmematas on 03/15/18


Tagged

arduino led blink


Versions (?)

LED parpalleja (BLINK)


 / Published in: C++
 

Codi per programar placa arduino per que faci que un LED parpallegi

  1. // Fem que un LED parpallegi
  2. define pinLED 8
  3.  
  4. void setup() {
  5.  
  6. pinMode(pinLED, OUTPUT);
  7. }
  8.  
  9. void loop() {
  10.  
  11. digitalWrite(pinLED, HIGH); // encen el LED.
  12. delay(500); // retard en milisegons
  13. digitalWrite(pinLED, LOW); // apaga el LED
  14. delay(500);
  15. }

Report this snippet  

You need to login to post a comment.