Browse Source

First commit, serial test

master
Red Forks 8 years ago
commit
de8b1d46f0
2 changed files with 21 additions and 0 deletions
  1. +20
    -0
      com-test/com-test.ino
  2. +1
    -0
      libraries/readme.txt

+ 20
- 0
com-test/com-test.ino View File

@ -0,0 +1,20 @@
void setup() {
// initialize serial communication at 9600 bits per second:
Serial.begin(9600);
}
void loop() {
// send data only when you receive data:
while (Serial.available() > 0) {
// read the incoming byte:
int incomingByte = Serial.read();
Serial.write(incomingByte);
}
static int no = 0;
Serial.print("serial port test ");
Serial.println(no++);
delay(2000);
}

+ 1
- 0
libraries/readme.txt View File

@ -0,0 +1 @@
For information on installing libraries, see: http://www.arduino.cc/en/Guide/Libraries

Loading…
Cancel
Save