-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathILJJ_Mk-VIII.ino
46 lines (40 loc) · 1.06 KB
/
ILJJ_Mk-VIII.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
#include "defines.h"
bool flag;
void setup() {
pinMode(_F2, OUTPUT);
pinMode(_F1, OUTPUT);
pinMode(_F0, OUTPUT);
pinMode(_Cout, INPUT);
pinMode(_Cin, OUTPUT);
pinMode(_S1, INPUT);
pinMode(_S0, INPUT);
pinMode(_A1, OUTPUT);
pinMode(_A0, OUTPUT);
pinMode(_B1, OUTPUT);
pinMode(_B0, OUTPUT);
Serial.begin(9600);
flag = false;
}
void loop() {
if (!flag) {
// Serial.println("To start tests, please enter: ");
Serial.flush();
}
if (Serial.available()) {
while (Serial.read() != -1);
Serial.println("Starting tests...");
tester("- XOR test", xor_test);
tester("- XNOR test", xnor_test);
tester("- AND test", and_test);
tester("- OR test", or_test);
tester("- Adder test", adder_test);
/*
tester("- XOR test", loopTester(_XOR));
tester("- XNOR test", loopTester(_XNOR));
tester("- AND test", loopTester(_AND));
tester("- OR test", loopTester(_OR));
tester("- Adder test", loopTester(_ADD));
tester("- Sub test", loopTester(_SUB));
*/
}
}