arduino:arduino_crash_course:program_structure
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
arduino:arduino_crash_course:program_structure [2015/03/12 21:06] – [Main loop] mithat | arduino:arduino_crash_course:program_structure [2017/12/06 01:01] (current) – mithat | ||
---|---|---|---|
Line 30: | Line 30: | ||
void setup() { | void setup() { | ||
- | | + | pinMode(13, OUTPUT); |
- | | + | |
} | } | ||
Line 54: | Line 53: | ||
void setup() { | void setup() { | ||
- | | + | pinMode(ledPin, |
- | | + | |
} | } | ||
Line 78: | Line 76: | ||
// use variable ledPin to store the pin number that drives the LED | // use variable ledPin to store the pin number that drives the LED | ||
int ledPin = 13; | int ledPin = 13; | ||
+ | |||
// define the LED's on and off times in milliseconds | // define the LED's on and off times in milliseconds | ||
int onTime = 1000; | int onTime = 1000; | ||
Line 83: | Line 82: | ||
void setup() { | void setup() { | ||
- | | + | pinMode(ledPin, |
- | | + | |
} | } | ||
arduino/arduino_crash_course/program_structure.txt · Last modified: 2017/12/06 01:01 by mithat