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 revisionLast revisionBoth sides next revision | ||
arduino:arduino_crash_course:program_structure [2013/07/07 22:32] – mithat | arduino:arduino_crash_course:program_structure [2017/11/06 02:23] – mithat | ||
---|---|---|---|
Line 13: | Line 13: | ||
void loop() { | void loop() { | ||
- | // Stuff in here gets run over and over and over again (until you turn the power off). | + | // Stuff in here gets run over and over and over again |
+ | // (until you turn the power off). | ||
} | } | ||
</ | </ | ||
- | Whatever you write in the body of the '' | + | Whatever you write in the body of the '' |
===== Blink an LED ===== | ===== Blink an LED ===== | ||
Line 77: | Line 78: | ||
// 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; |
arduino/arduino_crash_course/program_structure.txt · Last modified: 2017/12/06 01:01 by mithat