Un article pour rassembler les infos et idées autour du SkullBadge créé par le Tétalab à l'occasion du THSF 3.0 .
/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
forked to use attiny85 on skullbadge
see http://hlt.media.mit.edu/?p=1695
This example code is in the public domain.
*/
void setup() {
// initialize the digital pin as an output.
// 0 is IR led
// 1 is red led
// 2 is blue led
// 4 is green led (=A1 if used as input)
pinMode(4, OUTPUT);
}
void loop() {
digitalWrite(4, HIGH); // set the LED on
delay(250); // wait for a second
digitalWrite(4, LOW); // set the LED off
delay(250); // wait for a second
}Retourner vers Vos projets, vos idées
Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 1 invité