Plugging in the Makefile-based Arduino workflow
yaaaaaay
This commit is contained in:
@@ -1,6 +1,16 @@
|
||||
const unsigned int LED_PIN = 13;
|
||||
const unsigned int PAUSE = 500;
|
||||
const unsigned int FLASH_DURATION = 50;
|
||||
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() {
|
||||
@@ -15,13 +25,3 @@ void loop() {
|
||||
}
|
||||
delay(PAUSE);
|
||||
}
|
||||
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
1
arduino/HelloWorld/Makefile
Symbolic link
1
arduino/HelloWorld/Makefile
Symbolic link
@@ -0,0 +1 @@
|
||||
../arduino.mk
|
||||
Reference in New Issue
Block a user