File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
hardware/arduino/avr/libraries/Bridge/examples/YunSerialTerminal Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 16
16
'~' followed by '1' -> Set the UART speed to 115200 baud
17
17
'~' followed by '2' -> Set the UART speed to 250000 baud
18
18
'~' followed by '3' -> Set the UART speed to 500000 baud
19
-
19
+ '~' followeb by '~' -> Sends the bridge's shutdown command to
20
+ obtain the console.
21
+
20
22
The circuit:
21
23
* Arduino Yun
22
24
@@ -59,6 +61,9 @@ void loop() {
59
61
} else if (c == ' 3' ) { // '3' key pressed?
60
62
Serial1.begin (500000 ); // set speed to 500000
61
63
Serial.println (" Speed set to 500000" );
64
+ } else if (c == ' ~' ) {
65
+ Serial1.write ((uint8_t *)" \xff\0\0\x05 XXXXX\x0d\xaf " , 11 );
66
+ Serial.println (" Sending bridge's shutdown command" );
62
67
} else { // any other key pressed?
63
68
Serial1.write (' ~' ); // write '~' to Linino
64
69
Serial1.write (c); // write char to Linino
@@ -70,4 +75,4 @@ void loop() {
70
75
char c = (char )Serial1.read (); // read from Linino
71
76
Serial.write (c); // write to USB-serial
72
77
}
73
- }
78
+ }
You can’t perform that action at this time.
0 commit comments