File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
vg4_keyboard/logic_analyzer Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ void setup() {
18
18
delay (10 );
19
19
digitalWrite (resetPin , HIGH);
20
20
21
- Serial.begin (9600 );
21
+ Serial.begin (1000000 );
22
22
Serial.println (" Hello logic_analyzer" );
23
23
}
24
24
@@ -32,11 +32,11 @@ void loop() {
32
32
inKey = 1 ; // we're recording until numones==30
33
33
numOnes = 0 ;
34
34
Serial.println (" START" );
35
- Serial.println ( " 0 " );
35
+ Serial.print ( micros ()); Serial. print ( " , 0, " );
36
36
digitalWrite (LED_BUILTIN, HIGH);
37
37
} else if (inKey) {
38
38
if (data == HIGH) {
39
- Serial.println ( " 1 " );
39
+ Serial.print ( micros ()); Serial. print ( " , 1, " );
40
40
numOnes++;
41
41
if (numOnes == 30 ) {
42
42
inKey = 0 ;
@@ -47,7 +47,7 @@ void loop() {
47
47
}
48
48
} else {
49
49
numOnes = 0 ;
50
- Serial.println ( " 0 " );
50
+ Serial.print ( micros ()); Serial. print ( " , 0, " );
51
51
}
52
52
}
53
53
}
You can’t perform that action at this time.
0 commit comments