Moving Blink def so it compiles on PlatformIO
This commit is contained in:
parent
ec90680e00
commit
91a462cea4
|
|
@ -87,6 +87,14 @@ void setup() {
|
|||
#endif
|
||||
}
|
||||
|
||||
void Blink(byte PIN, int DELAY_MS)
|
||||
{
|
||||
pinMode(PIN, OUTPUT);
|
||||
digitalWrite(PIN,HIGH);
|
||||
delay(DELAY_MS);
|
||||
digitalWrite(PIN,LOW);
|
||||
}
|
||||
|
||||
long lastPeriod = 0;
|
||||
void loop() {
|
||||
//process any serial input
|
||||
|
|
@ -186,11 +194,3 @@ void loop() {
|
|||
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