add serial example
authordaniel watson <ozzloy@gmail.com>
Fri, 25 Oct 2013 03:38:07 +0000 (20:38 -0700)
committerdaniel watson <ozzloy@gmail.com>
Fri, 25 Oct 2013 03:38:07 +0000 (20:38 -0700)
serial/README [new file with mode: 0644]
serial/serial.ino [new file with mode: 0644]

diff --git a/serial/README b/serial/README
new file mode 100644 (file)
index 0000000..e94dd22
--- /dev/null
@@ -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 (file)
index 0000000..420fc32
--- /dev/null
@@ -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 <http://www.gnu.org/licenses/>.
+ */
+
+void setup(){
+  Serial.begin(9600);
+  Serial.println("hello computer!");}
+
+void loop(){}