hardmood.info

A DokuWiki flirting with bilingualism to chronicle Prof. Felix Beck's courses and academic antics.

User Tools

Site Tools


22_11_21

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
22_11_21 [2021/11/26 16:30] – [Arduino-Workshop] julia22_11_21 [2021/11/26 16:34] – [Arduino-Workshop] julia
Line 16: Line 16:
  
 void setup:  void setup: 
-  ''pinMode(LED_BUILTIN, OUTPUT);''+  pinMode(LED_BUILTIN, OUTPUT);
 void loop:  void loop: 
-  ''digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)+  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
   delay(1000);                       // wait for a second   delay(1000);                       // wait for a second
   digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW   digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
-  delay(1000);                       // wait for a second''+  delay(1000);                       // wait for a second
  
 {{:arduino11.jpg?400|}} {{:arduino12.jpg?400|}} {{:arduino11.jpg?400|}} {{:arduino12.jpg?400|}}
Line 31: Line 31:
  ''pinMode(13,OUTPUT);  ''pinMode(13,OUTPUT);
  
- pinMode(12,OUTPUT);+   pinMode(12,OUTPUT);
 '' ''
  
 void loop: void loop:
  
-  ''digitalWrite(13,HIGH);+  digitalWrite(13,HIGH);
   digitalWrite(12,LOW);   digitalWrite(12,LOW);
- 
   delay(1000);   delay(1000);
- 
   digitalWrite(12,HIGH);   digitalWrite(12,HIGH);
   digitalWrite(13,LOW);   digitalWrite(13,LOW);
 +  delay(1000);
  
-  delay(1000);''+ 
 +   
 +  
 + Dieser Code kann an eine beliebige Anzahl von LEDs angepasst werden.
  
 {{:arduino18.jpg?400|}} {{:arduino20.jpg?400|}} {{:arduino18.jpg?400|}} {{:arduino20.jpg?400|}}
 +
 +