Organizing the arduino things a bit

This commit is contained in:
2013-12-29 22:53:04 -05:00
parent af850b2d91
commit 31d62328ba
30 changed files with 10 additions and 10 deletions

View File

@@ -0,0 +1,27 @@
const unsigned int LED_PIN = 13;
const unsigned int PAUSE = 700;
const unsigned int FLASH_DURATION = 100;
void flash(int n) {
for (int i = 0; i < n; i++) {
digitalWrite(LED_PIN, HIGH);
delay(FLASH_DURATION);
digitalWrite(LED_PIN, LOW);
delay(FLASH_DURATION);
}
}
void setup() {
pinMode(LED_PIN, OUTPUT);
}
void loop() {
for (int i = 1; i < 4; i++) {
flash(i);
delay(PAUSE);
}
delay(PAUSE);
}

View File

@@ -0,0 +1 @@
../../../arduino.mk