Merge pull request #37 from ip2k/master
Moving Blink def so it compiles on PlatformIO
This commit is contained in:
commit
2e84b5b2ce
|
|
@ -87,6 +87,14 @@ void setup() {
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Blink(byte PIN, int DELAY_MS)
|
||||||
|
{
|
||||||
|
pinMode(PIN, OUTPUT);
|
||||||
|
digitalWrite(PIN,HIGH);
|
||||||
|
delay(DELAY_MS);
|
||||||
|
digitalWrite(PIN,LOW);
|
||||||
|
}
|
||||||
|
|
||||||
long lastPeriod = 0;
|
long lastPeriod = 0;
|
||||||
void loop() {
|
void loop() {
|
||||||
//process any serial input
|
//process any serial input
|
||||||
|
|
@ -186,11 +194,3 @@ void loop() {
|
||||||
Blink(LED,3);
|
Blink(LED,3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Blink(byte PIN, int DELAY_MS)
|
|
||||||
{
|
|
||||||
pinMode(PIN, OUTPUT);
|
|
||||||
digitalWrite(PIN,HIGH);
|
|
||||||
delay(DELAY_MS);
|
|
||||||
digitalWrite(PIN,LOW);
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue