Skip to content

Instantly share code, notes, and snippets.

@michaelsarduino
Created July 7, 2015 12:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelsarduino/6fe325e3b4ba5cf655ed to your computer and use it in GitHub Desktop.
Save michaelsarduino/6fe325e3b4ba5cf655ed to your computer and use it in GitHub Desktop.
Dieser Sketch hilft beim herausfinden, welcher Pin des Arduino, welchen LED Strich des 7 Segment Displays ansteuert.
void setup() {
int i;
Serial.begin(9600);
for(i=2; i<10; i++)
{
Serial.println(i);
pinMode(i, OUTPUT);
digitalWrite(i, HIGH);
delay(5000);
digitalWrite(i, LOW);
}
}
void loop() {
//keine zu wiederholende Aktion
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment