@@ -31,46 +31,46 @@ void loop () {
31
31
if (btup == HIGH){
32
32
int btup_now = millis ();
33
33
if (btup_now - MIN_INTERVAL >= BT_UP_LASTPRESS){
34
- if (BT_UP_LAST_STATUS == LOW) Serial.println (" 1" );
34
+ if (BT_UP_LAST_STATUS == LOW) Serial.print (" 1" );
35
35
BT_UP_LAST_STATUS = HIGH;
36
- Serial.println (" W" );
36
+ Serial.print (" W" );
37
37
BT_UP_LASTPRESS = millis ();
38
38
}
39
39
}
40
40
else {
41
- if (BT_UP_LAST_STATUS == HIGH) Serial.println (" 0" );
41
+ if (BT_UP_LAST_STATUS == HIGH) Serial.print (" 0" );
42
42
BT_UP_LAST_STATUS = LOW;
43
43
}
44
44
45
45
int btleft = digitalRead (BT_LEFT); // Read button state
46
46
if (btleft == HIGH){
47
47
int btleft_now = millis ();
48
48
if (btleft_now - MIN_INTERVAL >= BT_LEFT_LASTPRESS){
49
- if (BT_LEFT_LAST_STATUS == LOW) Serial.println (" 1" );
49
+ if (BT_LEFT_LAST_STATUS == LOW) Serial.print (" 1" );
50
50
BT_LEFT_LAST_STATUS = HIGH;
51
- Serial.println (" A" );
51
+ Serial.print (" A" );
52
52
BT_LEFT_LASTPRESS = millis ();
53
53
// Keyboard.press(KEY_LEFT_ARROW);
54
54
}
55
55
}
56
56
else {
57
- if (BT_LEFT_LAST_STATUS == HIGH) Serial.println (" 0" );
57
+ if (BT_LEFT_LAST_STATUS == HIGH) Serial.print (" 0" );
58
58
BT_LEFT_LAST_STATUS = LOW;
59
59
}
60
60
61
61
int btright = digitalRead (BT_RIGHT); // Read button state
62
62
if (btright == HIGH){
63
63
int btright_now = millis ();
64
64
if (btright_now - MIN_INTERVAL >= BT_RIGHT_LASTPRESS){
65
- if (BT_RIGHT_LAST_STATUS == LOW) Serial.println (" 1" );
65
+ if (BT_RIGHT_LAST_STATUS == LOW) Serial.print (" 1" );
66
66
BT_RIGHT_LAST_STATUS = HIGH;
67
- Serial.println (" D" );
67
+ Serial.print (" D" );
68
68
BT_RIGHT_LASTPRESS = millis ();
69
69
// Keyboard.press(KEY_RIGHT_ARROW);
70
70
}
71
71
}
72
72
else {
73
- if (BT_RIGHT_LAST_STATUS == HIGH) Serial.println (" 0" );
73
+ if (BT_RIGHT_LAST_STATUS == HIGH) Serial.print (" 0" );
74
74
BT_RIGHT_LAST_STATUS = LOW;
75
75
}
76
76
}
0 commit comments