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 :
#define pinLed 6 // En void setup establim algunes funcions basiques , en aquest cas "PinLed" void setup() { // El pin número 6 està en mode de sortida. pinMode(pinLed, OUTPUT); } // es on coloquem les ordres que s'aniran executan void loop() { // Engeguem el led. digitalWrite(pinLed, HIGH); // Esperem. delay(500); // Apaguem el led. digitalWrite(pinLed, LOW); // Esperem. delay(500); // Engeguem el led. digitalWrite(pinLed, HIGH); // Esperem. delay(500); // Apaguem el led. digitalWrite(pinLed, LOW); // Esperem. delay(500); // Engeguem el led. digitalWrite(pinLed, HIGH); // Esperem. delay(500); // Apaguem el led. digitalWrite(pinLed, LOW); // Esperem. delay(500); // Engeguem el led. digitalWrite(pinLed, HIGH); // Esperem. delay(1000); // Apaguem el led. digitalWrite(pinLed, LOW); // Esperem. delay(1000); // Engeguem el led. digitalWrite(pinLed, HIGH); // Esperem. delay(1000); // Apaguem el led. digitalWrite(pinLed, LOW); // Esperem. delay(1000); // Engeguem el led. digitalWrite(pinLed, HIGH); // Esperem. delay(1000); // Apaguem el led. digitalWrite(pinLed, LOW); // Esperem. delay(1000); // Engeguem el led. digitalWrite(pinLed, HIGH); // Esperem. delay(500); // Apaguem el led. digitalWrite(pinLed, LOW); // Esperem. delay(500); // Engeguem el led. digitalWrite(pinLed, HIGH); // Esperem. delay(500); // Apaguem el led. digitalWrite(pinLed, LOW); // Esperem. delay(500); // Engeguem el led. digitalWrite(pinLed, HIGH); // Esperem. delay(500); // Apaguem el led. digitalWrite(pinLed, LOW); // Esperem. delay(500); }