Created
July 7, 2015 12:52
-
-
Save michaelsarduino/a8081d3fec779ee39e9b to your computer and use it in GitHub Desktop.
Sketch, der eine 7 auf einem 7 Segment Display erzeugt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
pinMode(2, OUTPUT); | |
pinMode(3, OUTPUT); | |
pinMode(4, OUTPUT); | |
pinMode(5, OUTPUT); | |
pinMode(6, OUTPUT); | |
pinMode(7, OUTPUT); | |
pinMode(8, OUTPUT); | |
pinMode(9, OUTPUT); | |
} | |
void loop() { | |
sieben(); | |
} | |
void sieben() { | |
int i; | |
for(i=2; i<10; i++) | |
{ | |
digitalWrite(i, LOW); | |
} | |
digitalWrite(3, HIGH); | |
digitalWrite(6, HIGH); | |
digitalWrite(7, HIGH); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment