Created
November 23, 2014 23:00
-
-
Save Aleksey-Danchin/f09e9f82e952cbd80647 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
/* | |
* Project: 'My first Arduino Project.' | |
* Description: 'Work by a lesson.' | |
* Autor: 'Aleksey Danchin' | |
* Date: '24.11.2014' | |
* Links: | |
* Lesson 1 (in Russian) | |
* http://www.youtube.com/watch?v=bO_jN0Lpz3Q#t=773 | |
*/ | |
int ledPin = 13; | |
int highTime = 1 * 1000; | |
int lowTime = 1 * 1000; | |
void setup () | |
{ | |
// Initialize pins as outputs. | |
pinMode(ledPin, OUTPUT); | |
} | |
void loop () | |
{ | |
digitalWrite(ledPin, HIGH); | |
delay(highTime); | |
digitalWrite(ledPin, LOW); | |
delay(lowTime); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment