From 58bfe2ae32532654f701dd5b1eeb8f073dde5b16 Mon Sep 17 00:00:00 2001 From: daniel watson Date: Thu, 24 Oct 2013 20:38:07 -0700 Subject: [PATCH] add serial example --- serial/README | 11 +++++++++++ serial/serial.ino | 20 ++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 serial/README create mode 100644 serial/serial.ino diff --git a/serial/README b/serial/README new file mode 100644 index 0000000..e94dd22 --- /dev/null +++ b/serial/README @@ -0,0 +1,11 @@ +(how to use this + (connect your robot to your computer via usb cable) + (open arduino ide) + (in arduino ide, open serial.ino) + (hit the upload button) + (hit control+shift+m, + or go to the menu item tools, and down to serial monitor) + (in the bottom right, select "9600 baud") + (hit the reset button on the arduino) + (you should see "hello computer!" each time you hit the reset button) + (yaaay!)) \ No newline at end of file diff --git a/serial/serial.ino b/serial/serial.ino new file mode 100644 index 0000000..420fc32 --- /dev/null +++ b/serial/serial.ino @@ -0,0 +1,20 @@ +/* + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as + published by the Free Software Foundation, either version 3 of + the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + */ + +void setup(){ + Serial.begin(9600); + Serial.println("hello computer!");} + +void loop(){} -- 2.30.2