Skip to content

Commit 398458b

Browse files
Tasmanian DevilTasmanian Devil
Tasmanian Devil
authored and
Tasmanian Devil
committed
Merged branch Development into master
2 parents afa93b9 + 77ad581 commit 398458b

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
const int EnginePin = 2;
3+
int EngineState = LOW;
4+
5+
void setup()
6+
{
7+
pinMode(EnginePin, OUTPUT);
8+
}
9+
10+
void loop()
11+
{
12+
13+
if (EngineState == HIGH)
14+
{
15+
EngineState = LOW;
16+
}
17+
else
18+
{
19+
EngineState = HIGH;
20+
}
21+
22+
digitalWrite(EnginePin, EngineState);
23+
24+
delay(500);
25+
26+
}
27+

0 commit comments

Comments
 (0)