-
Notifications
You must be signed in to change notification settings - Fork 0
/
EDVAC.ino
47 lines (37 loc) · 991 Bytes
/
EDVAC.ino
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//#include <dht.h>
//Operation specific variables
//Operation lights
//Operation Example
boolean EXAMPLECOMPLETE = false;
//End Operation specific variables
//Other variables here
int i = 0; //generic integer to run while loops
int state = LOW;
int imputACT = "";
int commandTimeout = 40; //The interger to determine if a command has timed out or not (so as to not get stuck in a loop)
boolean newData = false; //becomes true only as long as there is unindexed information
String imput = ""; //populated with the current command not yet run
//End other variables
void setup() {
pinmode();
Serial.begin(57600); //start serial port
delay(10);
// reserve 200 bytes for the imput
imput.reserve(200);
while(Serial.available() == 0)
{
delay(10);
//Do nothing untill imput is applied
}
imput = "";
delay(10);
boot();
}
void loop() {
// readFromSerial(); //read a command from serial when available
if(newData == true)
{
index();
}
delay(1);
}