summaryrefslogtreecommitdiff
path: root/2003/i/buzz/src/serial/test_serial.cc
diff options
context:
space:
mode:
Diffstat (limited to '2003/i/buzz/src/serial/test_serial.cc')
-rw-r--r--2003/i/buzz/src/serial/test_serial.cc30
1 files changed, 30 insertions, 0 deletions
diff --git a/2003/i/buzz/src/serial/test_serial.cc b/2003/i/buzz/src/serial/test_serial.cc
new file mode 100644
index 0000000..74001a1
--- /dev/null
+++ b/2003/i/buzz/src/serial/test_serial.cc
@@ -0,0 +1,30 @@
+// test_serial.cc
+// buzz - Programme du robot Efrei Robotique I1-I2 2003
+// Copyright (C) 2003 Nicolas Schodet
+//
+#include "serial.h"
+#include "erreur/erreur.h"
+
+#include <iostream>
+
+int
+main (void)
+{
+ try
+ {
+ Serial s ("/dev/tty00");
+ //char c;
+ //do
+ //{
+ s.write ("Coucou !\n", 9);
+ //c = s.getchar ();
+ //sleep (1);
+ //}
+ //while (c != 'q');
+ }
+ catch (Erreur &e)
+ {
+ cerr << e.what ();
+ return 1;
+ }
+}