[code_snippet_source id=4 line_numbers=true]Voici un programme arduino simple, qui fait clignoter une led sur la pin 13. Le clignotement signal le mot SOS en Morse. Carte Starter Kit de Démarrage [pastacode lang= »bash » manual= »const%20int%20LED_PIN%20%3D%2013%3B%20%2F%2F%20Pin%20de%20la%20LED%0A%0Avoid%20setup()%20%7B%0A%20%20%2F%2F%20Initialise%20la%20LED%20en%20sortie%0A%20%20pinMode(LED_PIN%2C%20OUTPUT)%3B%0A%7D%0A%0Avoid%20loop()%20%7B%0A%20%20%2F%2F%20Envoie%20le%20message%20SOS%20en%20code%20morse%0A%20%20digitalWrite(LED_PIN%2C%20HIGH)%3B%0A%20%20delay(1000)%3B%0A%20%20digitalWrite(LED_PIN%2C%20LOW)%3B%0A%20%20delay(1000)%3B%0A%20%20digitalWrite(LED_PIN%2C%20HIGH)%3B%0A%20%20delay(1000)%3B%0A%20%20digitalWrite(LED_PIN%2C%20LOW)%3B%0A%20%20delay(1000)%3B%0A%20%20digitalWrite(LED_PIN%2C%20HIGH)%3B%0A%20%20delay(1000)%3B%0A%20%20digitalWrite(LED_PIN%2C%20LOW)%3B%0A%20%20delay(1000)%3B%0A%20%20digitalWrite(LED_PIN%2C%20HIGH)%3B%0A%20%20delay(1000)%3B%0A%20%20digitalWrite(LED_PIN%2C%20LOW)%3B%0A%20%20delay(1000)%3B%0A%20%20digitalWrite(LED_PIN%2C%20HIGH)%3B%0A%20%20delay(1000)%3B%0A%20%20digitalWrite(LED_PIN%2C%20LOW)%3B%0A%20%20delay(1000)%3B%0A%20%20digitalWrite(LED_PIN%2C%20HIGH)%3B%0A%20%20delay(1000)%3B%0A%20%20digitalWrite(LED_PIN%2C%20LOW)%3B%0A%20%20delay(1000)%3B%0A%7D%0A » message= » » highlight= » » provider= »manual »/] Dans ce programme, est définit d’abord la constante LED_PIN qui indique sur quel pin la LED est connectée. Ensuite, dans la fonction setup(), est initialisée...