Codi 1

In this project we are working with the micro conntroller MKR-1000



Here we will see an example video when the code is executed :



here you have the code of the video example, he code is underlined :

    
   // C++ code
//
void setup()
{
  pinMode(8, OUTPUT);// el mode del pin es de sortida, el pin marcat es el 8 en em microcontrolador 
}

void loop()
{
   digitalWrite(8, HIGH);  // Led conected in PIN 8 is switched on during the delay marked below
   delay(1000); // Wait for 1000 millisecond(s)
   digitalWrite(8, LOW); // Led conected in PIN 8 is switched off  during the delay marked below
   delay(1000); // Wait for 1000 millisecond(s)
   digitalWrite(8, HIGH); // Led conected in PIN 8 is switched on during the delay marked below
   delay(1000); // Wait for 1000 millisecond(s)
   digitalWrite(8, LOW); // Led conected in PIN 8 is switched off during the delay marked below
   delay(1000); // Wait for 1000 millisecond(s)
   digitalWrite(8, HIGH);// Led conected in PIN 8 is switched on during the delay marked below
   delay(1000); // Wait for 1000 millisecond(s)
   digitalWrite(8, LOW);// Led conected in PIN 8 is switched off during the delay marked below
   delay(1000); // Wait for 1000 millisecond(s)
   digitalWrite(8, HIGH);// Led conected in PIN 8 is switched on during the delay marked below
   delay(2000); // Wait for 2000 millisecond(s)
   digitalWrite(8, LOW);// Led conected in PIN 8 is switched off during the delay marked below
   delay(1000); // Wait for 1000 millisecond(s)
   digitalWrite(8, HIGH);// Led conected in PIN 8 is switched on during the delay marked below
   delay(2000); // Wait for 2000 millisecond(s)
   digitalWrite(8, LOW);// Led conected in PIN 8 is switched off during the delay marked below
   delay(1000); // Wait for 1000 millisecond(s)
   digitalWrite(8, HIGH);// Led conected in PIN 8 is switched on during the delay marked below
   delay(2000); // Wait for 2000 millisecond(s)
   digitalWrite(8, LOW);// Led conected in PIN 8 is switched off during the delay marked below
   delay(1000); // Wait for 1000 millisecond(s)
   digitalWrite(8, HIGH);// Led conected in PIN 8 is switched on during the delay marked below
   delay(1000); // Wait for 1000 millisecond(s)
   digitalWrite(8, LOW); // Led conected in PIN 8 is switched off during the delay marked below
   delay(1000); // Wait for 1000 millisecond(s)
   digitalWrite(8, HIGH);// Led conected in PIN 8 is switched on during the delay marked below
   delay(1000); // Wait for 1000 millisecond(s)
   digitalWrite(8, LOW); // Led conected in PIN 8 is switched off during the delay marked below
   delay(1000); // Wait for 1000 millisecond(s)
   digitalWrite(8, HIGH);// Led conected in PIN 8 is switched on during the delay marked below
   delay(1000); // Wait for 1000 millisecond(s)
   (8, LOW); // Led conected in PIN 8 is switched off during the delay marked below
   delay(60000); // Wait for 60000 millisecond(s)
}