☰
Debian Codegraph
@
1.5.5.8-1
/
/
examples
/
serial
/
arduino
/
ckserial.ino
☽
☼
examples/serial/arduino/ckserial.ino
code
plain
raw
GPL-2.0+
2004 Ge Wang and Perry R. Cook. All rights reserved.
debian/copyright
1
char bytes[1024];
2
3
void setup()
4
{
5
// start serial port at 9600 bps and wait for port to open:
6
Serial.begin(9600);
7
}
8
9
void loop()
10
{
11
int nRead = Serial.readBytesUntil('\n', bytes, 1024);
12
if(nRead > 0)
13
Serial.println("bar");
14
}