aboutsummaryrefslogtreecommitdiff
path: root/examples/simple_input.pd
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-09-03 22:15:14 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-09-03 22:15:14 +0000
commitab9192477d8ee6cf507f49af9c0432c9ac52457f (patch)
tree328c57be689d14e916cff07b132c0e0bbb66488c /examples/simple_input.pd
parentafe7e56d0f0bc030064804f56d0aaf6f690c2cfc (diff)
added two usage examples
svn path=/trunk/externals/hardware/arduino/; revision=13964
Diffstat (limited to 'examples/simple_input.pd')
-rw-r--r--examples/simple_input.pd20
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/simple_input.pd b/examples/simple_input.pd
new file mode 100644
index 0000000..55d5827
--- /dev/null
+++ b/examples/simple_input.pd
@@ -0,0 +1,20 @@
+#N canvas 194 50 450 300 10;
+#X obj 114 139 arduino;
+#X msg 114 54 pinMode 5 0;
+#X msg 130 82 digitalIns 0 1;
+#X msg 144 112 analogIns 0 1;
+#X obj 114 167 route digital analog;
+#X msg 90 29 open 0;
+#X obj 172 192 route 0;
+#X obj 172 215 print Analog pin 0 value is;
+#X obj 114 238 print Digital pin 5 is;
+#X obj 114 203 route 5;
+#X connect 0 0 4 0;
+#X connect 1 0 0 0;
+#X connect 2 0 0 0;
+#X connect 3 0 0 0;
+#X connect 4 0 9 0;
+#X connect 4 1 6 0;
+#X connect 5 0 0 0;
+#X connect 6 0 7 0;
+#X connect 9 0 8 0;