aboutsummaryrefslogtreecommitdiff
path: root/examples/simple_input.pd
diff options
context:
space:
mode:
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;