Last active
November 22, 2016 14:00
-
-
Save wakasann/f714669e99de020b34f24e8e0725ddbc to your computer and use it in GitHub Desktop.
This file contains 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
//Port 13 + | |
//resistance(电阻) | |
//Led(辨别LED灯正负极:1.长脚是正极,短脚是负极;2.发光二极管管体内部金属极较小的是正极,大的片状的是负极) | |
//Port GND - | |
int ledPin = 13; | |
void setup() | |
{ | |
pinMode(ledPin,OUTPUT); | |
} | |
void loop() | |
{ | |
digitalWrite(ledPin,HIGH); | |
delay(1000); | |
digitalWrite(ledPin,LOW); | |
delay(1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment