From 0c18097c8a15e1f2b4b6cbdae3236f6337f9a3f7 Mon Sep 17 00:00:00 2001
From: Ivica Ico Bukvic <ico@vt.edu>
Date: Wed, 30 Jul 2014 10:30:45 -0400
Subject: [PATCH] *tested and fixed compliance with ports of sarcduino objects
 so that their channel numbers correspond with those on arduino uno board

---
 l2ork_addons/K12/sarcduino_analog.pd  |  2 +-
 l2ork_addons/K12/sarcduino_connect.pd | 27 +++++++++++++--------------
 l2ork_addons/K12/sarcduino_digital.pd |  6 +++---
 3 files changed, 17 insertions(+), 18 deletions(-)
 mode change 100755 => 100644 l2ork_addons/K12/sarcduino_connect.pd

diff --git a/l2ork_addons/K12/sarcduino_analog.pd b/l2ork_addons/K12/sarcduino_analog.pd
index 5f293b694..c45872b3e 100755
--- a/l2ork_addons/K12/sarcduino_analog.pd
+++ b/l2ork_addons/K12/sarcduino_analog.pd
@@ -3,7 +3,7 @@
 #X obj 228 45 ggee/image @pd_extra/K12/objects/sarcduino_analog.png
 1;
 #X obj 228 -60 loadbang;
-#X obj 240 44 nbx 2 14 0 15 0 0 empty empty channel: -48 8 0 11 -262144
+#X obj 240 44 nbx 2 14 0 5 0 0 empty empty channel: -48 8 0 11 -262144
 -1 -1 0 256 3;
 #X obj 128 -60 inlet;
 #X obj 240 -15 preset_node k12;
diff --git a/l2ork_addons/K12/sarcduino_connect.pd b/l2ork_addons/K12/sarcduino_connect.pd
old mode 100755
new mode 100644
index d6d2dfae6..68359afa2
--- a/l2ork_addons/K12/sarcduino_connect.pd
+++ b/l2ork_addons/K12/sarcduino_connect.pd
@@ -65,18 +65,18 @@
 #X obj 405 212 != 1;
 #X obj 356 304 list prepend d;
 #X obj 356 327 outlet;
-#X obj 39 257 list prepend 0;
-#X obj 91 235 list prepend 1;
-#X obj 143 257 list prepend 2;
-#X obj 195 235 list prepend 3;
-#X obj 248 257 list prepend 4;
-#X obj 304 235 list prepend 5;
-#X obj 405 257 list prepend 6;
-#X obj 457 235 list prepend 7;
-#X obj 509 257 list prepend 8;
-#X obj 561 235 list prepend 9;
-#X obj 614 257 list prepend 10;
-#X obj 670 235 list prepend 11;
+#X obj 39 257 list prepend 2;
+#X obj 91 235 list prepend 3;
+#X obj 143 257 list prepend 4;
+#X obj 195 235 list prepend 5;
+#X obj 248 257 list prepend 6;
+#X obj 304 235 list prepend 7;
+#X obj 405 257 list prepend 8;
+#X obj 457 235 list prepend 9;
+#X obj 509 257 list prepend 10;
+#X obj 561 235 list prepend 11;
+#X obj 614 257 list prepend 12;
+#X obj 670 235 list prepend 13;
 #X connect 0 0 1 0;
 #X connect 0 0 2 0;
 #X connect 0 0 3 0;
@@ -208,8 +208,7 @@
 #X text 41 358 analog = a <channel> <val>;
 #X obj 185 15 bng 85 250 50 0 empty empty empty 17 7 0 10 -262144 -1
 -1;
-#X obj 228 45 ggee/image @pd_extra/K12/objects/sarcduino_off.png 1
-;
+#X obj 228 45 ggee/image @pd_extra/K12/objects/sarcduino_on.png 1;
 #X obj 302 46 loadbang;
 #X obj 336 24 select 0 1;
 #X obj 140 127 gate 2 1;
diff --git a/l2ork_addons/K12/sarcduino_digital.pd b/l2ork_addons/K12/sarcduino_digital.pd
index 36a7c2774..20cb9d5a6 100755
--- a/l2ork_addons/K12/sarcduino_digital.pd
+++ b/l2ork_addons/K12/sarcduino_digital.pd
@@ -3,8 +3,8 @@
 #X obj 228 45 ggee/image @pd_extra/K12/objects/sarcduino_digital.png
 1;
 #X obj 228 -60 loadbang;
-#X obj 239 44 nbx 2 14 0 15 0 0 empty empty channel: -48 8 0 11 -262144
--1 -1 0 256 3;
+#X obj 239 44 nbx 2 14 2 13 0 0 empty empty channel: -48 8 0 11 -262144
+-1 -1 2 256 3;
 #X obj 128 -60 inlet;
 #X obj 245 -15 preset_node k12;
 #X obj 128 -15 route list;
@@ -12,7 +12,7 @@
 #X obj 212 60 tgl 30 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
 1;
 #X msg 228 -37 open @pd_extra/K12/objects/sarcduino_digital.png;
-#X obj 128 31 route 0;
+#X obj 128 31 route 2;
 #X connect 2 0 9 0;
 #X connect 3 0 5 0;
 #X connect 3 0 10 1;
-- 
GitLab