Tuto Arduino Lilypad
Utiliser trois leds
Les besoins:
Une Arduino Lilypad | Un FTDI Breackout | Trois modules led arduino Lilypad | Fils avec pinces crocos |
![]() |
![]() |
![]() |
![]() |
Schéma de montage :
Code pour IDE arduino :
void setup() { pinMode(7,OUTPUT); pinMode(8,OUTPUT); pinMode(9,OUTPUT); } void loop() { digitalWrite(7,HIGH); delay(2000); digitalWrite(7,LOW); delay(100); digitalWrite(8,HIGH); delay(2200); digitalWrite(8,LOW); delay(100); digitalWrite(9,HIGH); delay(2100); digitalWrite(9,LOW);// turn the LED off by making the voltage LOW delay(100); // turn the LED on (HIGH is the voltage level) delay(100); }