MCPcopy
hub / github.com/arduino/Arduino / send

Method send

app/src/processing/app/SerialMonitor.java:103–124  ·  view source on GitHub ↗
(String s)

Source from the content-addressed store, hash-verified

101 }
102
103 private void send(String s) {
104 if (serial != null) {
105 switch (lineEndings.getSelectedIndex()) {
106 case 1:
107 s += "\n";
108 break;
109 case 2:
110 s += "\r";
111 break;
112 case 3:
113 s += "\r\n";
114 break;
115 default:
116 break;
117 }
118 if ("".equals(s) && lineEndings.getSelectedIndex() == 0 && !PreferencesData.has("runtime.line.ending.alert.notified")) {
119 noLineEndingAlert.setForeground(Color.RED);
120 PreferencesData.set("runtime.line.ending.alert.notified", "true");
121 }
122 serial.write(s);
123 }
124 }
125
126 @Override
127 public void open() throws Exception {

Callers 3

SerialMonitorMethod · 0.95
zepto.min.jsFile · 0.45
zepto.min.jsFile · 0.45

Calls 5

hasMethod · 0.95
setMethod · 0.95
equalsMethod · 0.45
setForegroundMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected