diff --git a/cr/interfaces/.DS_Store b/.DS_Store similarity index 92% rename from cr/interfaces/.DS_Store rename to .DS_Store index 0d0af3da04a25f15d72880b6c3abacbff87061c7..6733f30a3e663ffdd686f2d62c710b9e190448e5 100644 Binary files a/cr/interfaces/.DS_Store and b/.DS_Store differ diff --git a/README.md b/README.md deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/cr/.DS_Store b/cr/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..323f1b6dbd0754c601d9365c6f2ca51edc1e9fb1 Binary files /dev/null and b/cr/.DS_Store differ diff --git a/cr/object-icons/.DS_Store b/cr/docs/.DS_Store similarity index 100% rename from cr/object-icons/.DS_Store rename to cr/docs/.DS_Store diff --git a/cr/docs/cr.boardin.maxref.xml b/cr/docs/cr.boardin.maxref.xml new file mode 100755 index 0000000000000000000000000000000000000000..1da46a3378439c10febdf82812d983940f5c0c08 --- /dev/null +++ b/cr/docs/cr.boardin.maxref.xml @@ -0,0 +1,82 @@ + + + + + + + + Arduino UNO Board Inputs (Reader) + + + + + Takes Arduino UNO pins input ... Add further description... + + + + + Creative Robotics Lab + CR + Max + Arduino + Robotics + Firmata + + + + + + Messages: Bang, Print + + + + + + + Input data from the board pin, as specified in the object parameters + Add further description of the outlets + + + + + + + Choose port to connec to board. + + + Set baud rate, default is 57,680. + + + + + + + List digital input pin numbers. + + + + List analog input pin numbers. + + + + + + + + + Bang Message to retrieve data values from board + + + + + List available ports + + + + + + + + + + diff --git a/cr/docs/cr.boardout.maxref.xml b/cr/docs/cr.boardout.maxref.xml new file mode 100755 index 0000000000000000000000000000000000000000..6a00039e0156fc0ffec7d762c5200a9439f085cf --- /dev/null +++ b/cr/docs/cr.boardout.maxref.xml @@ -0,0 +1,80 @@ + + + + + + + + Arduino UNO Board Outputs (Writer) + + + + + Takes Arduino UNO pins output ... Add further description... + + + + + Creative Robotics Lab + CR + Max + Arduino + Robotics + Firmata + + + + + + Messages: Print + + + Writes data to board pins, as specified + Add further description of the inlets + + + + + + + + + + Choose port to connec to board. + + + + + + + + List digital output pin numbers. + + + + List pwm output pin numbers. + + + + List servo output pin numbers. + + + + + + + + + List available ports + + + + + + + + + + diff --git a/cr/examples/.DS_Store b/cr/examples/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 Binary files /dev/null and b/cr/examples/.DS_Store differ diff --git a/cr/examples/demo1_pot+servo+temp+led.maxpat b/cr/examples/demo1_pot+servo+temp+led.maxpat new file mode 100644 index 0000000000000000000000000000000000000000..c90d9a45f58e98af398a6126cda19c896746fe65 --- /dev/null +++ b/cr/examples/demo1_pot+servo+temp+led.maxpat @@ -0,0 +1,406 @@ +{ + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 7, + "minor" : 3, + "revision" : 1, + "architecture" : "x86", + "modernui" : 1 + } +, + "rect" : [ 1011.0, 142.0, 765.0, 524.0 ], + "bglocked" : 0, + "openinpresentation" : 0, + "default_fontsize" : 12.0, + "default_fontface" : 0, + "default_fontname" : "Arial", + "gridonopen" : 1, + "gridsize" : [ 15.0, 15.0 ], + "gridsnaponopen" : 1, + "objectsnaponopen" : 1, + "statusbarvisible" : 2, + "toolbarvisible" : 1, + "lefttoolbarpinned" : 0, + "toptoolbarpinned" : 0, + "righttoolbarpinned" : 0, + "bottomtoolbarpinned" : 0, + "toolbars_unpinned_last_save" : 0, + "tallnewobj" : 0, + "boxanimatetime" : 200, + "enablehscroll" : 1, + "enablevscroll" : 1, + "devicewidth" : 0.0, + "description" : "", + "digest" : "", + "tags" : "", + "style" : "", + "subpatcher_template" : "", + "boxes" : [ { + "box" : { + "id" : "obj-22", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 224.0, 462.0, 120.0, 20.0 ], + "style" : "", + "text" : "Arduino Uno Writer" + } + + } +, { + "box" : { + "id" : "obj-21", + "linecount" : 3, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 359.5, 338.5, 95.0, 47.0 ], + "style" : "", + "text" : "Reads Analog Values from the Potentiometer" + } + + } +, { + "box" : { + "id" : "obj-10", + "linecount" : 3, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 481.5, 226.5, 138.0, 47.0 ], + "style" : "", + "text" : "Reads Analog Pins: \n14 (A0 - temperature)\n18 (A4 - potentiometer)" + } + + } +, { + "box" : { + "fontface" : 1, + "fontsize" : 16.0, + "id" : "obj-20", + "linecount" : 2, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 83.0, 35.0, 611.0, 42.0 ], + "style" : "", + "text" : "Demo 1: Arduino UNO \nPotentiometer, LED Light, Servo, and a Temperature Sensor", + "textjustification" : 1 + } + + } +, { + "box" : { + "id" : "obj-19", + "linecount" : 2, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 378.5, 421.0, 76.0, 33.0 ], + "style" : "", + "text" : "Writes to the Servo Pin" + } + + } +, { + "box" : { + "id" : "obj-18", + "linecount" : 2, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 147.0, 295.5, 150.0, 33.0 ], + "style" : "", + "text" : "Reads Analog Values from the Temperature Sensor" + } + + } +, { + "box" : { + "id" : "obj-17", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 578.0, 394.0, 102.0, 20.0 ], + "style" : "", + "text" : "Turn LED On/Off" + } + + } +, { + "box" : { + "id" : "obj-16", + "linecount" : 3, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 581.0, 448.5, 99.0, 47.0 ], + "style" : "", + "text" : "Writes to Pins:\nServo 9 (Servo)\nDigital 11 (LED)" + } + + } +, { + "box" : { + "id" : "obj-15", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 177.0, 239.0, 120.0, 20.0 ], + "style" : "", + "text" : "Arduino Uno Reader" + } + + } +, { + "box" : { + "id" : "obj-14", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 129.0, 422.0, 117.0, 20.0 ], + "style" : "", + "text" : "Print available ports" + } + + } +, { + "box" : { + "id" : "obj-13", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 83.0, 164.0, 117.0, 20.0 ], + "style" : "", + "text" : "Print available ports" + } + + } +, { + "box" : { + "id" : "obj-12", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 391.0, 163.0, 186.0, 20.0 ], + "style" : "", + "text" : "Determine speed of pins updates" + } + + } +, { + "box" : { + "id" : "obj-11", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 352.5, 110.0, 163.0, 20.0 ], + "style" : "", + "text" : "Turn Analog Reader On/Off" + } + + } +, { + "box" : { + "id" : "obj-9", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 270.0, 421.0, 34.0, 22.0 ], + "style" : "", + "text" : "print" + } + + } +, { + "box" : { + "id" : "obj-8", + "maxclass" : "toggle", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 538.5, 392.0, 24.0, 24.0 ], + "style" : "" + } + + } +, { + "box" : { + "id" : "obj-7", + "maxclass" : "number", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "bang" ], + "parameter_enable" : 0, + "patching_rect" : [ 449.0, 392.0, 50.0, 22.0 ], + "style" : "" + } + + } +, { + "box" : { + "id" : "obj-6", + "maxclass" : "number", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "bang" ], + "parameter_enable" : 0, + "patching_rect" : [ 310.0, 301.0, 50.0, 22.0 ], + "style" : "" + } + + } +, { + "box" : { + "id" : "obj-5", + "maxclass" : "toggle", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 309.0, 108.0, 24.0, 24.0 ], + "style" : "" + } + + } +, { + "box" : { + "id" : "obj-4", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "bang" ], + "patching_rect" : [ 309.0, 159.0, 58.0, 22.0 ], + "style" : "", + "text" : "metro 80" + } + + } +, { + "box" : { + "id" : "obj-3", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 224.0, 163.0, 34.0, 22.0 ], + "style" : "", + "text" : "print" + } + + } +, { + "box" : { + "id" : "obj-2", + "maxclass" : "newobj", + "numinlets" : 3, + "numoutlets" : 0, + "patching_rect" : [ 359.5, 461.0, 198.0, 22.0 ], + "style" : "", + "text" : "cr.boardout a @servo 9 @digital 11" + } + + } +, { + "box" : { + "id" : "obj-1", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "int", "int" ], + "patching_rect" : [ 310.0, 239.0, 158.0, 22.0 ], + "style" : "", + "text" : "cr.boardin a @analog 14 18" + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-6", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-1", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-7", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-1", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-1", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-3", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-1", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-4", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-4", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-5", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-2", 1 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-7", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-2", 2 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-8", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-2", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-9", 0 ] + } + + } + ], + "dependency_cache" : [ { + "name" : "cr.boardin.mxo", + "type" : "iLaX" + } +, { + "name" : "cr.boardout.mxo", + "type" : "iLaX" + } + ], + "autosave" : 0 + } + +} diff --git a/cr/examples/demo_boardin_pot_#18.maxpat b/cr/examples/demo_boardin_pot_#18.maxpat deleted file mode 100644 index 27c2504d3474807b2e14e0edc8e9a19fea535c8c..0000000000000000000000000000000000000000 --- a/cr/examples/demo_boardin_pot_#18.maxpat +++ /dev/null @@ -1,290 +0,0 @@ -{ - "patcher" : { - "fileversion" : 1, - "appversion" : { - "major" : 7, - "minor" : 3, - "revision" : 1, - "architecture" : "x86", - "modernui" : 1 - } -, - "rect" : [ 44.0, 79.0, 557.0, 835.0 ], - "bglocked" : 0, - "openinpresentation" : 0, - "default_fontsize" : 12.0, - "default_fontface" : 0, - "default_fontname" : "Arial", - "gridonopen" : 1, - "gridsize" : [ 15.0, 15.0 ], - "gridsnaponopen" : 1, - "objectsnaponopen" : 1, - "statusbarvisible" : 2, - "toolbarvisible" : 1, - "lefttoolbarpinned" : 0, - "toptoolbarpinned" : 0, - "righttoolbarpinned" : 0, - "bottomtoolbarpinned" : 0, - "toolbars_unpinned_last_save" : 0, - "tallnewobj" : 0, - "boxanimatetime" : 200, - "enablehscroll" : 1, - "enablevscroll" : 1, - "devicewidth" : 0.0, - "description" : "", - "digest" : "", - "tags" : "", - "style" : "", - "subpatcher_template" : "", - "boxes" : [ { - "box" : { - "id" : "obj-3", - "maxclass" : "toggle", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "int" ], - "parameter_enable" : 0, - "patching_rect" : [ 262.0, 512.0, 24.0, 24.0 ], - "style" : "" - } - - } -, { - "box" : { - "id" : "obj-18", - "maxclass" : "toggle", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "int" ], - "parameter_enable" : 0, - "patching_rect" : [ 371.0, 38.0, 24.0, 24.0 ], - "style" : "" - } - - } -, { - "box" : { - "id" : "obj-17", - "maxclass" : "button", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "bang" ], - "patching_rect" : [ 371.0, 135.0, 24.0, 24.0 ], - "style" : "" - } - - } -, { - "box" : { - "id" : "obj-14", - "maxclass" : "newobj", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "bang" ], - "patching_rect" : [ 370.5, 86.5, 65.0, 22.0 ], - "style" : "", - "text" : "metro 800" - } - - } -, { - "box" : { - "id" : "obj-9", - "maxclass" : "number", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "bang" ], - "parameter_enable" : 0, - "patching_rect" : [ 262.0, 428.0, 101.0, 22.0 ], - "style" : "" - } - - } -, { - "box" : { - "id" : "obj-7", - "maxclass" : "message", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 79.0, 213.0, 37.0, 22.0 ], - "style" : "", - "text" : "bang" - } - - } -, { - "box" : { - "id" : "obj-4", - "maxclass" : "number", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "bang" ], - "parameter_enable" : 0, - "patching_rect" : [ 59.5, 532.0, 122.0, 22.0 ], - "style" : "" - } - - } -, { - "box" : { - "id" : "obj-12", - "maxclass" : "number", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "bang" ], - "parameter_enable" : 0, - "patching_rect" : [ 102.0, 455.0, 112.0, 22.0 ], - "style" : "" - } - - } -, { - "box" : { - "id" : "obj-1", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 3, - "outlettype" : [ "", "", "" ], - "patching_rect" : [ 67.0, 341.5, 221.0, 22.0 ], - "style" : "", - "text" : "cr.boardin a @analog 14 18 @digital 11" - } - - } -, { - "box" : { - "id" : "obj-11", - "maxclass" : "message", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 25.0, 290.0, 34.0, 22.0 ], - "style" : "", - "text" : "print" - } - - } -, { - "box" : { - "id" : "obj-6", - "maxclass" : "message", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 25.0, 24.0, 34.0, 22.0 ], - "style" : "", - "text" : "print" - } - - } -, { - "box" : { - "id" : "obj-5", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "int", "" ], - "patching_rect" : [ 67.0, 54.0, 39.0, 22.0 ], - "style" : "", - "text" : "serial" - } - - } - ], - "lines" : [ { - "patchline" : { - "destination" : [ "obj-12", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-1", 1 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-4", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-1", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-9", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-1", 2 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-1", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-11", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-1", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-14", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-17", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-14", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-14", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-18", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-5", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-6", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-1", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-7", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-3", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-9", 0 ] - } - - } - ], - "dependency_cache" : [ ], - "autosave" : 0 - } - -} diff --git a/cr/examples/demo_boardout_servo_#9.maxpat b/cr/examples/demo_boardout_servo_#9.maxpat deleted file mode 100644 index fba57f8254f69f6af9ff213c9bc54eec33832923..0000000000000000000000000000000000000000 --- a/cr/examples/demo_boardout_servo_#9.maxpat +++ /dev/null @@ -1,123 +0,0 @@ -{ - "patcher" : { - "fileversion" : 1, - "appversion" : { - "major" : 7, - "minor" : 3, - "revision" : 1, - "architecture" : "x86", - "modernui" : 1 - } -, - "rect" : [ 42.0, 160.0, 640.0, 480.0 ], - "bglocked" : 0, - "openinpresentation" : 0, - "default_fontsize" : 12.0, - "default_fontface" : 0, - "default_fontname" : "Arial", - "gridonopen" : 1, - "gridsize" : [ 15.0, 15.0 ], - "gridsnaponopen" : 1, - "objectsnaponopen" : 1, - "statusbarvisible" : 2, - "toolbarvisible" : 1, - "lefttoolbarpinned" : 0, - "toptoolbarpinned" : 0, - "righttoolbarpinned" : 0, - "bottomtoolbarpinned" : 0, - "toolbars_unpinned_last_save" : 0, - "tallnewobj" : 0, - "boxanimatetime" : 200, - "enablehscroll" : 1, - "enablevscroll" : 1, - "devicewidth" : 0.0, - "description" : "", - "digest" : "", - "tags" : "", - "style" : "", - "subpatcher_template" : "", - "boxes" : [ { - "box" : { - "id" : "obj-10", - "maxclass" : "newobj", - "numinlets" : 3, - "numoutlets" : 0, - "patching_rect" : [ 145.0, 142.0, 198.0, 22.0 ], - "style" : "", - "text" : "cr.boardout a @servo 9 @digital 11" - } - - } -, { - "box" : { - "id" : "obj-7", - "maxclass" : "number", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "bang" ], - "parameter_enable" : 0, - "patching_rect" : [ 311.0, 61.0, 50.0, 22.0 ], - "style" : "" - } - - } -, { - "box" : { - "id" : "obj-4", - "maxclass" : "message", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 103.0, 61.0, 34.0, 22.0 ], - "style" : "", - "text" : "print" - } - - } -, { - "box" : { - "id" : "obj-2", - "maxclass" : "number", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "bang" ], - "parameter_enable" : 0, - "patching_rect" : [ 228.0, 61.0, 50.0, 22.0 ], - "style" : "" - } - - } - ], - "lines" : [ { - "patchline" : { - "destination" : [ "obj-10", 1 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-2", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-10", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-4", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-10", 2 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-7", 0 ] - } - - } - ], - "dependency_cache" : [ ], - "autosave" : 0 - } - -} diff --git a/cr/examples/demo_in+out_light+button+lightsensor.maxpat b/cr/examples/demo_in+out_light+button+lightsensor.maxpat deleted file mode 100644 index a8f9bbe28ae8a432d71a73f0ffb84cf534cf66c3..0000000000000000000000000000000000000000 --- a/cr/examples/demo_in+out_light+button+lightsensor.maxpat +++ /dev/null @@ -1,246 +0,0 @@ -{ - "patcher" : { - "fileversion" : 1, - "appversion" : { - "major" : 7, - "minor" : 3, - "revision" : 1, - "architecture" : "x86", - "modernui" : 1 - } -, - "rect" : [ 59.0, 104.0, 640.0, 480.0 ], - "bglocked" : 0, - "openinpresentation" : 0, - "default_fontsize" : 12.0, - "default_fontface" : 0, - "default_fontname" : "Arial", - "gridonopen" : 1, - "gridsize" : [ 15.0, 15.0 ], - "gridsnaponopen" : 1, - "objectsnaponopen" : 1, - "statusbarvisible" : 2, - "toolbarvisible" : 1, - "lefttoolbarpinned" : 0, - "toptoolbarpinned" : 0, - "righttoolbarpinned" : 0, - "bottomtoolbarpinned" : 0, - "toolbars_unpinned_last_save" : 0, - "tallnewobj" : 0, - "boxanimatetime" : 200, - "enablehscroll" : 1, - "enablevscroll" : 1, - "devicewidth" : 0.0, - "description" : "", - "digest" : "", - "tags" : "", - "style" : "", - "subpatcher_template" : "", - "boxes" : [ { - "box" : { - "id" : "obj-11", - "maxclass" : "toggle", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "int" ], - "parameter_enable" : 0, - "patching_rect" : [ 250.0, 25.0, 24.0, 24.0 ], - "style" : "" - } - - } -, { - "box" : { - "id" : "obj-10", - "maxclass" : "newobj", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "bang" ], - "patching_rect" : [ 250.0, 64.0, 58.0, 22.0 ], - "style" : "", - "text" : "metro 20" - } - - } -, { - "box" : { - "id" : "obj-9", - "maxclass" : "number", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "bang" ], - "parameter_enable" : 0, - "patching_rect" : [ 351.5, 207.0, 50.0, 22.0 ], - "style" : "" - } - - } -, { - "box" : { - "id" : "obj-8", - "maxclass" : "number", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "bang" ], - "parameter_enable" : 0, - "patching_rect" : [ 184.5, 207.0, 50.0, 22.0 ], - "style" : "" - } - - } -, { - "box" : { - "id" : "obj-7", - "maxclass" : "message", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 163.0, 64.0, 37.0, 22.0 ], - "style" : "", - "text" : "bang" - } - - } -, { - "box" : { - "id" : "obj-6", - "maxclass" : "message", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 73.0, 108.0, 34.0, 22.0 ], - "style" : "", - "text" : "print" - } - - } -, { - "box" : { - "id" : "obj-5", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "" ], - "patching_rect" : [ 184.5, 146.0, 198.0, 22.0 ], - "style" : "", - "text" : "cr.boardin a @analog 19 @digital 4" - } - - } -, { - "box" : { - "id" : "obj-4", - "maxclass" : "message", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 147.0, 336.0, 34.0, 22.0 ], - "style" : "", - "text" : "print" - } - - } -, { - "box" : { - "id" : "obj-3", - "maxclass" : "toggle", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "int" ], - "parameter_enable" : 0, - "patching_rect" : [ 304.0, 305.0, 24.0, 24.0 ], - "style" : "" - } - - } -, { - "box" : { - "id" : "obj-1", - "maxclass" : "newobj", - "numinlets" : 2, - "numoutlets" : 0, - "patching_rect" : [ 224.0, 380.0, 137.0, 22.0 ], - "style" : "", - "text" : "cr.boardout a @digital 2" - } - - } - ], - "lines" : [ { - "patchline" : { - "destination" : [ "obj-5", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-10", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-10", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-11", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-1", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-4", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-8", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-5", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-9", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-5", 1 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-5", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-6", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-5", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-7", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-1", 1 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-9", 0 ] - } - - } - ], - "dependency_cache" : [ ], - "autosave" : 0 - } - -} diff --git a/cr/examples/demo_in+out_pot+servo+temp+led.maxpat b/cr/examples/demo_in+out_pot+servo+temp+led.maxpat deleted file mode 100644 index cabd8ed5aafdc109d74a60258261813bf5572698..0000000000000000000000000000000000000000 --- a/cr/examples/demo_in+out_pot+servo+temp+led.maxpat +++ /dev/null @@ -1,219 +0,0 @@ -{ - "patcher" : { - "fileversion" : 1, - "appversion" : { - "major" : 7, - "minor" : 3, - "revision" : 1, - "architecture" : "x86", - "modernui" : 1 - } -, - "rect" : [ 84.0, 129.0, 640.0, 480.0 ], - "bglocked" : 0, - "openinpresentation" : 0, - "default_fontsize" : 12.0, - "default_fontface" : 0, - "default_fontname" : "Arial", - "gridonopen" : 1, - "gridsize" : [ 15.0, 15.0 ], - "gridsnaponopen" : 1, - "objectsnaponopen" : 1, - "statusbarvisible" : 2, - "toolbarvisible" : 1, - "lefttoolbarpinned" : 0, - "toptoolbarpinned" : 0, - "righttoolbarpinned" : 0, - "bottomtoolbarpinned" : 0, - "toolbars_unpinned_last_save" : 0, - "tallnewobj" : 0, - "boxanimatetime" : 200, - "enablehscroll" : 1, - "enablevscroll" : 1, - "devicewidth" : 0.0, - "description" : "", - "digest" : "", - "tags" : "", - "style" : "", - "subpatcher_template" : "", - "boxes" : [ { - "box" : { - "id" : "obj-8", - "maxclass" : "toggle", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "int" ], - "parameter_enable" : 0, - "patching_rect" : [ 348.0, 262.0, 24.0, 24.0 ], - "style" : "" - } - - } -, { - "box" : { - "id" : "obj-7", - "maxclass" : "number", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "bang" ], - "parameter_enable" : 0, - "patching_rect" : [ 265.0, 216.0, 50.0, 22.0 ], - "style" : "" - } - - } -, { - "box" : { - "id" : "obj-6", - "maxclass" : "number", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "bang" ], - "parameter_enable" : 0, - "patching_rect" : [ 139.0, 216.0, 50.0, 22.0 ], - "style" : "" - } - - } -, { - "box" : { - "id" : "obj-5", - "maxclass" : "toggle", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "int" ], - "parameter_enable" : 0, - "patching_rect" : [ 139.0, 62.0, 24.0, 24.0 ], - "style" : "" - } - - } -, { - "box" : { - "id" : "obj-4", - "maxclass" : "newobj", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "bang" ], - "patching_rect" : [ 139.0, 105.0, 58.0, 22.0 ], - "style" : "", - "text" : "metro 80" - } - - } -, { - "box" : { - "id" : "obj-3", - "maxclass" : "message", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 54.0, 109.0, 34.0, 22.0 ], - "style" : "", - "text" : "print" - } - - } -, { - "box" : { - "id" : "obj-2", - "maxclass" : "newobj", - "numinlets" : 3, - "numoutlets" : 0, - "patching_rect" : [ 182.0, 352.0, 185.0, 22.0 ], - "style" : "", - "text" : "boardout b @servo 9 @digital 11" - } - - } -, { - "box" : { - "id" : "obj-1", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "int", "int" ], - "patching_rect" : [ 139.0, 154.0, 145.0, 22.0 ], - "style" : "", - "text" : "boardin b @analog 14 18" - } - - } - ], - "lines" : [ { - "patchline" : { - "destination" : [ "obj-6", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-1", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-7", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-1", 1 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-1", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-3", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-1", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-4", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-4", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-5", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-2", 1 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-7", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-2", 2 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-8", 0 ] - } - - } - ], - "dependency_cache" : [ { - "name" : "boardin.mxo", - "type" : "iLaX" - } -, { - "name" : "boardout.mxo", - "type" : "iLaX" - } - ], - "autosave" : 0 - } - -} diff --git a/cr/examples/demo_light_out.maxpat b/cr/examples/demo_light_out.maxpat deleted file mode 100644 index 2b435debb1593eddbc20e1608e49cb5f6a27527c..0000000000000000000000000000000000000000 --- a/cr/examples/demo_light_out.maxpat +++ /dev/null @@ -1,105 +0,0 @@ -{ - "patcher" : { - "fileversion" : 1, - "appversion" : { - "major" : 7, - "minor" : 3, - "revision" : 1, - "architecture" : "x86", - "modernui" : 1 - } -, - "rect" : [ 59.0, 104.0, 640.0, 480.0 ], - "bglocked" : 0, - "openinpresentation" : 0, - "default_fontsize" : 12.0, - "default_fontface" : 0, - "default_fontname" : "Arial", - "gridonopen" : 1, - "gridsize" : [ 15.0, 15.0 ], - "gridsnaponopen" : 1, - "objectsnaponopen" : 1, - "statusbarvisible" : 2, - "toolbarvisible" : 1, - "lefttoolbarpinned" : 0, - "toptoolbarpinned" : 0, - "righttoolbarpinned" : 0, - "bottomtoolbarpinned" : 0, - "toolbars_unpinned_last_save" : 0, - "tallnewobj" : 0, - "boxanimatetime" : 200, - "enablehscroll" : 1, - "enablevscroll" : 1, - "devicewidth" : 0.0, - "description" : "", - "digest" : "", - "tags" : "", - "style" : "", - "subpatcher_template" : "", - "boxes" : [ { - "box" : { - "id" : "obj-4", - "maxclass" : "message", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 63.0, 100.0, 34.0, 22.0 ], - "style" : "", - "text" : "print" - } - - } -, { - "box" : { - "id" : "obj-2", - "maxclass" : "toggle", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "int" ], - "parameter_enable" : 0, - "patching_rect" : [ 273.0, 80.0, 24.0, 24.0 ], - "style" : "" - } - - } -, { - "box" : { - "id" : "obj-1", - "maxclass" : "newobj", - "numinlets" : 2, - "numoutlets" : 0, - "patching_rect" : [ 167.0, 158.0, 125.0, 22.0 ], - "style" : "", - "text" : "boardout a @digital 2" - } - - } - ], - "lines" : [ { - "patchline" : { - "destination" : [ "obj-1", 1 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-2", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-1", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-4", 0 ] - } - - } - ], - "dependency_cache" : [ { - "name" : "boardout.mxo", - "type" : "iLaX" - } - ], - "autosave" : 0 - } - -} diff --git a/cr/examples/demo_lightsensor+button.maxpat b/cr/examples/demo_lightsensor+button.maxpat deleted file mode 100644 index d48acb2d1a0b70c9ce5173bcaa8066cdcfdb3041..0000000000000000000000000000000000000000 --- a/cr/examples/demo_lightsensor+button.maxpat +++ /dev/null @@ -1,190 +0,0 @@ -{ - "patcher" : { - "fileversion" : 1, - "appversion" : { - "major" : 7, - "minor" : 3, - "revision" : 1, - "architecture" : "x86", - "modernui" : 1 - } -, - "rect" : [ 59.0, 104.0, 640.0, 480.0 ], - "bglocked" : 0, - "openinpresentation" : 0, - "default_fontsize" : 12.0, - "default_fontface" : 0, - "default_fontname" : "Arial", - "gridonopen" : 1, - "gridsize" : [ 15.0, 15.0 ], - "gridsnaponopen" : 1, - "objectsnaponopen" : 1, - "statusbarvisible" : 2, - "toolbarvisible" : 1, - "lefttoolbarpinned" : 0, - "toptoolbarpinned" : 0, - "righttoolbarpinned" : 0, - "bottomtoolbarpinned" : 0, - "toolbars_unpinned_last_save" : 0, - "tallnewobj" : 0, - "boxanimatetime" : 200, - "enablehscroll" : 1, - "enablevscroll" : 1, - "devicewidth" : 0.0, - "description" : "", - "digest" : "", - "tags" : "", - "style" : "", - "subpatcher_template" : "", - "boxes" : [ { - "box" : { - "id" : "obj-7", - "maxclass" : "toggle", - "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "int" ], - "parameter_enable" : 0, - "patching_rect" : [ 159.0, 76.0, 24.0, 24.0 ], - "style" : "" - } - - } -, { - "box" : { - "id" : "obj-6", - "maxclass" : "newobj", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "bang" ], - "patching_rect" : [ 159.0, 113.0, 65.0, 22.0 ], - "style" : "", - "text" : "metro 200" - } - - } -, { - "box" : { - "id" : "obj-5", - "maxclass" : "message", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 45.0, 148.0, 37.0, 22.0 ], - "style" : "", - "text" : "bang" - } - - } -, { - "box" : { - "id" : "obj-4", - "maxclass" : "number", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "bang" ], - "parameter_enable" : 0, - "patching_rect" : [ 313.0, 271.0, 50.0, 22.0 ], - "style" : "" - } - - } -, { - "box" : { - "id" : "obj-3", - "maxclass" : "number", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "bang" ], - "parameter_enable" : 0, - "patching_rect" : [ 159.0, 266.0, 50.0, 22.0 ], - "style" : "" - } - - } -, { - "box" : { - "id" : "obj-2", - "maxclass" : "message", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 89.0, 83.0, 34.0, 22.0 ], - "style" : "", - "text" : "print" - } - - } -, { - "box" : { - "id" : "obj-1", - "maxclass" : "newobj", - "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "" ], - "patching_rect" : [ 159.0, 188.0, 198.0, 22.0 ], - "style" : "", - "text" : "cr.boardin a @digital 4 @analog 19" - } - - } - ], - "lines" : [ { - "patchline" : { - "destination" : [ "obj-3", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-1", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-4", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-1", 1 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-1", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-2", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-1", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-5", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-1", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-6", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-6", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-7", 0 ] - } - - } - ], - "dependency_cache" : [ ], - "autosave" : 0 - } - -} diff --git a/cr/externals/.DS_Store b/cr/externals/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..d4af8e8b587c29904a2757e86e17b4637992e23e Binary files /dev/null and b/cr/externals/.DS_Store differ diff --git a/cr/externals/cr.boardin.mxo/Contents/MacOS/cr.boardin b/cr/externals/cr.boardin.mxo/Contents/MacOS/cr.boardin index 69c78d6535af680152d16f1e598c5bc9d90ff9b6..585a4d8d59bf96224cc7d0150f582bb66eb15100 100755 Binary files a/cr/externals/cr.boardin.mxo/Contents/MacOS/cr.boardin and b/cr/externals/cr.boardin.mxo/Contents/MacOS/cr.boardin differ diff --git a/cr/externals/cr.boardout.mxo/Contents/MacOS/cr.boardout b/cr/externals/cr.boardout.mxo/Contents/MacOS/cr.boardout index 2adda566a9ff3f353416b5b1e8d5b4d39176ce75..2e2fb15474808ef8b2ed518f4b3606b39b4ecf9b 100755 Binary files a/cr/externals/cr.boardout.mxo/Contents/MacOS/cr.boardout and b/cr/externals/cr.boardout.mxo/Contents/MacOS/cr.boardout differ diff --git a/cr/help/.DS_Store b/cr/help/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 Binary files /dev/null and b/cr/help/.DS_Store differ diff --git a/cr/help/cr.boardin.maxhelp b/cr/help/cr.boardin.maxhelp index 27c2504d3474807b2e14e0edc8e9a19fea535c8c..af894237c4b21d1bd8a68d56a8bdaaac3b854500 100644 --- a/cr/help/cr.boardin.maxhelp +++ b/cr/help/cr.boardin.maxhelp @@ -9,7 +9,7 @@ "modernui" : 1 } , - "rect" : [ 44.0, 79.0, 557.0, 835.0 ], + "rect" : [ 1011.0, 142.0, 765.0, 616.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 12.0, @@ -38,141 +38,232 @@ "subpatcher_template" : "", "boxes" : [ { "box" : { - "id" : "obj-3", - "maxclass" : "toggle", + "id" : "obj-14", + "linecount" : 2, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 542.0, 311.0, 214.0, 33.0 ], + "style" : "", + "text" : "Note: Analog pins (A0-A5) in Arduino are numbered pins 14-19 in Max." + } + + } +, { + "box" : { + "id" : "obj-2", + "maxclass" : "comment", "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 89.5, 150.0, 150.0, 20.0 ], + "style" : "", + "text" : "Get Current Values (Once)" + } + + } +, { + "box" : { + "id" : "obj-9", + "maxclass" : "message", + "numinlets" : 2, "numoutlets" : 1, - "outlettype" : [ "int" ], - "parameter_enable" : 0, - "patching_rect" : [ 262.0, 512.0, 24.0, 24.0 ], - "style" : "" + "outlettype" : [ "" ], + "patching_rect" : [ 246.5, 149.0, 37.0, 22.0 ], + "style" : "", + "text" : "bang" + } + + } +, { + "box" : { + "id" : "obj-21", + "linecount" : 3, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 300.5, 423.5, 95.0, 47.0 ], + "style" : "", + "text" : "Reads Analog Values from the Potentiometer" + } + + } +, { + "box" : { + "id" : "obj-10", + "linecount" : 4, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 542.0, 244.0, 180.0, 60.0 ], + "style" : "", + "text" : "Reads from Pins: \nAnalog 14 (A0 - temperature)\nAnalog 18 (A4 - potentiometer)\nDigital 11 (D11 - light)" + } + + } +, { + "box" : { + "fontface" : 1, + "fontsize" : 16.0, + "id" : "obj-20", + "linecount" : 2, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 83.0, 35.0, 611.0, 42.0 ], + "style" : "", + "text" : "MaxHelp: Arduino UNO BoardIn\nPotentiometer, LED Light, and a Temperature Sensor", + "textjustification" : 1 } } , { "box" : { "id" : "obj-18", - "maxclass" : "toggle", + "linecount" : 2, + "maxclass" : "comment", "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "int" ], - "parameter_enable" : 0, - "patching_rect" : [ 371.0, 38.0, 24.0, 24.0 ], - "style" : "" + "numoutlets" : 0, + "patching_rect" : [ 147.0, 368.5, 153.0, 33.0 ], + "style" : "", + "text" : "Reads Analog Values from the Temperature Sensor" } } , { "box" : { "id" : "obj-17", - "maxclass" : "button", + "linecount" : 2, + "maxclass" : "comment", "numinlets" : 1, - "numoutlets" : 1, - "outlettype" : [ "bang" ], - "patching_rect" : [ 371.0, 135.0, 24.0, 24.0 ], - "style" : "" + "numoutlets" : 0, + "patching_rect" : [ 552.0, 379.0, 133.0, 33.0 ], + "style" : "", + "text" : "Reads Digital Values (On/Off) from the LED" } } , { "box" : { - "id" : "obj-14", - "maxclass" : "newobj", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "bang" ], - "patching_rect" : [ 370.5, 86.5, 65.0, 22.0 ], + "id" : "obj-15", + "linecount" : 4, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 125.5, 263.0, 172.0, 60.0 ], "style" : "", - "text" : "metro 800" + "text" : "Arduino Uno Reader\nRequires port index and the list of pins to read from (set to either Analog or Digital reads)" } } , { "box" : { - "id" : "obj-9", - "maxclass" : "number", + "id" : "obj-13", + "maxclass" : "comment", "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "", "bang" ], - "parameter_enable" : 0, - "patching_rect" : [ 262.0, 428.0, 101.0, 22.0 ], - "style" : "" + "numoutlets" : 0, + "patching_rect" : [ 93.0, 204.0, 117.0, 20.0 ], + "style" : "", + "text" : "Print Available Ports" } } , { "box" : { - "id" : "obj-7", - "maxclass" : "message", - "numinlets" : 2, - "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 79.0, 213.0, 37.0, 22.0 ], + "id" : "obj-12", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 387.0, 171.0, 198.0, 20.0 ], "style" : "", - "text" : "bang" + "text" : "Determine Speed of Pins Updates" } } , { "box" : { - "id" : "obj-4", + "id" : "obj-11", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 353.5, 122.0, 163.0, 20.0 ], + "style" : "", + "text" : "Turn Analog Reader On/Off" + } + + } +, { + "box" : { + "id" : "obj-8", + "maxclass" : "toggle", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 512.0, 383.5, 24.0, 24.0 ], + "style" : "" + } + + } +, { + "box" : { + "id" : "obj-7", "maxclass" : "number", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "bang" ], "parameter_enable" : 0, - "patching_rect" : [ 59.5, 532.0, 122.0, 22.0 ], + "patching_rect" : [ 411.0, 436.0, 50.0, 22.0 ], "style" : "" } } , { "box" : { - "id" : "obj-12", + "id" : "obj-6", "maxclass" : "number", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "bang" ], "parameter_enable" : 0, - "patching_rect" : [ 102.0, 455.0, 112.0, 22.0 ], + "patching_rect" : [ 310.0, 374.0, 50.0, 22.0 ], "style" : "" } } , { "box" : { - "id" : "obj-1", - "maxclass" : "newobj", + "id" : "obj-5", + "maxclass" : "toggle", "numinlets" : 1, - "numoutlets" : 3, - "outlettype" : [ "", "", "" ], - "patching_rect" : [ 67.0, 341.5, 221.0, 22.0 ], - "style" : "", - "text" : "cr.boardin a @analog 14 18 @digital 11" + "numoutlets" : 1, + "outlettype" : [ "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 310.0, 120.0, 24.0, 24.0 ], + "style" : "" } } , { "box" : { - "id" : "obj-11", - "maxclass" : "message", + "id" : "obj-4", + "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, - "outlettype" : [ "" ], - "patching_rect" : [ 25.0, 290.0, 34.0, 22.0 ], + "outlettype" : [ "bang" ], + "patching_rect" : [ 310.0, 171.0, 58.0, 22.0 ], "style" : "", - "text" : "print" + "text" : "metro 80" } } , { "box" : { - "id" : "obj-6", + "id" : "obj-3", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 25.0, 24.0, 34.0, 22.0 ], + "patching_rect" : [ 224.0, 204.0, 34.0, 22.0 ], "style" : "", "text" : "print" } @@ -180,39 +271,39 @@ } , { "box" : { - "id" : "obj-5", + "id" : "obj-1", "maxclass" : "newobj", "numinlets" : 1, - "numoutlets" : 2, - "outlettype" : [ "int", "" ], - "patching_rect" : [ 67.0, 54.0, 39.0, 22.0 ], + "numoutlets" : 3, + "outlettype" : [ "int", "int", "int" ], + "patching_rect" : [ 310.0, 263.0, 221.0, 22.0 ], "style" : "", - "text" : "serial" + "text" : "cr.boardin a @analog 14 18 @digital 11" } } ], "lines" : [ { "patchline" : { - "destination" : [ "obj-12", 0 ], + "destination" : [ "obj-6", 0 ], "disabled" : 0, "hidden" : 0, - "source" : [ "obj-1", 1 ] + "source" : [ "obj-1", 0 ] } } , { "patchline" : { - "destination" : [ "obj-4", 0 ], + "destination" : [ "obj-7", 0 ], "disabled" : 0, "hidden" : 0, - "source" : [ "obj-1", 0 ] + "source" : [ "obj-1", 1 ] } } , { "patchline" : { - "destination" : [ "obj-9", 0 ], + "destination" : [ "obj-8", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-1", 2 ] @@ -224,7 +315,7 @@ "destination" : [ "obj-1", 0 ], "disabled" : 0, "hidden" : 0, - "source" : [ "obj-11", 0 ] + "source" : [ "obj-3", 0 ] } } @@ -233,34 +324,16 @@ "destination" : [ "obj-1", 0 ], "disabled" : 0, "hidden" : 0, - "source" : [ "obj-14", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-17", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-14", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-14", 0 ], - "disabled" : 0, - "hidden" : 0, - "source" : [ "obj-18", 0 ] + "source" : [ "obj-4", 0 ] } } , { "patchline" : { - "destination" : [ "obj-5", 0 ], + "destination" : [ "obj-4", 0 ], "disabled" : 0, "hidden" : 0, - "source" : [ "obj-6", 0 ] + "source" : [ "obj-5", 0 ] } } @@ -269,21 +342,16 @@ "destination" : [ "obj-1", 0 ], "disabled" : 0, "hidden" : 0, - "source" : [ "obj-7", 0 ] - } - - } -, { - "patchline" : { - "destination" : [ "obj-3", 0 ], - "disabled" : 0, - "hidden" : 0, "source" : [ "obj-9", 0 ] } } ], - "dependency_cache" : [ ], + "dependency_cache" : [ { + "name" : "cr.boardin.mxo", + "type" : "iLaX" + } + ], "autosave" : 0 } diff --git a/cr/help/cr.boardout.maxhelp b/cr/help/cr.boardout.maxhelp index fba57f8254f69f6af9ff213c9bc54eec33832923..69f6b0de9f54780e41b0147121e2728a85578ca5 100644 --- a/cr/help/cr.boardout.maxhelp +++ b/cr/help/cr.boardout.maxhelp @@ -5,11 +5,11 @@ "major" : 7, "minor" : 3, "revision" : 1, - "architecture" : "x86", + "architecture" : "x64", "modernui" : 1 } , - "rect" : [ 42.0, 160.0, 640.0, 480.0 ], + "rect" : [ 148.0, 242.0, 765.0, 524.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 12.0, @@ -38,37 +38,117 @@ "subpatcher_template" : "", "boxes" : [ { "box" : { - "id" : "obj-10", - "maxclass" : "newobj", - "numinlets" : 3, + "id" : "obj-15", + "linecount" : 4, + "maxclass" : "comment", + "numinlets" : 1, "numoutlets" : 0, - "patching_rect" : [ 145.0, 142.0, 198.0, 22.0 ], + "patching_rect" : [ 96.0, 262.5, 183.0, 60.0 ], "style" : "", - "text" : "cr.boardout a @servo 9 @digital 11" + "text" : "Arduino Uno Writer\nRequires port index and the list of pins to write to (set to either Digital, PWM or Servo integers)" } } , { "box" : { - "id" : "obj-7", + "id" : "obj-3", + "linecount" : 3, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 308.0, 138.5, 134.0, 47.0 ], + "style" : "", + "text" : "Set PWM value for the LED to determine light intensity (dimmer)" + } + + } +, { + "box" : { + "id" : "obj-1", "maxclass" : "number", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "bang" ], "parameter_enable" : 0, - "patching_rect" : [ 311.0, 61.0, 50.0, 22.0 ], + "patching_rect" : [ 443.833344, 151.0, 50.0, 22.0 ], "style" : "" } } , { "box" : { - "id" : "obj-4", + "fontface" : 1, + "fontsize" : 16.0, + "id" : "obj-20", + "linecount" : 2, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 96.0, 56.0, 561.0, 42.0 ], + "style" : "", + "text" : "MaxHelp: Arduino UNO BoardOut \nDigital, Servo, and PWM", + "textjustification" : 1 + } + + } +, { + "box" : { + "id" : "obj-19", + "linecount" : 2, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 282.666656, 198.5, 76.0, 33.0 ], + "style" : "", + "text" : "Write to the Servo pin" + } + + } +, { + "box" : { + "id" : "obj-17", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 555.0, 206.0, 102.0, 20.0 ], + "style" : "", + "text" : "Turn LED On/Off" + } + + } +, { + "box" : { + "id" : "obj-16", + "linecount" : 4, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 551.0, 256.0, 99.0, 60.0 ], + "style" : "", + "text" : "Writes to Pins:\nServo 9 (Servo)\nPWM 5 (LED)\nDigital 11 (LED)" + } + + } +, { + "box" : { + "id" : "obj-14", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 102.0, 212.0, 117.0, 20.0 ], + "style" : "", + "text" : "Print available ports" + } + + } +, { + "box" : { + "id" : "obj-9", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], - "patching_rect" : [ 103.0, 61.0, 34.0, 22.0 ], + "patching_rect" : [ 231.0, 211.0, 34.0, 22.0 ], "style" : "", "text" : "print" } @@ -76,47 +156,85 @@ } , { "box" : { - "id" : "obj-2", + "id" : "obj-8", + "maxclass" : "toggle", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 520.5, 204.0, 24.0, 24.0 ], + "style" : "" + } + + } +, { + "box" : { + "id" : "obj-7", "maxclass" : "number", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "bang" ], "parameter_enable" : 0, - "patching_rect" : [ 228.0, 61.0, 50.0, 22.0 ], + "patching_rect" : [ 367.166656, 204.0, 50.0, 22.0 ], "style" : "" } + } +, { + "box" : { + "id" : "obj-2", + "maxclass" : "newobj", + "numinlets" : 4, + "numoutlets" : 0, + "patching_rect" : [ 290.5, 275.0, 249.0, 22.0 ], + "style" : "", + "text" : "cr.boardout a @servo 9 @pwm 5 @digital 11" + } + } ], "lines" : [ { "patchline" : { - "destination" : [ "obj-10", 1 ], + "destination" : [ "obj-2", 2 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-1", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-2", 1 ], "disabled" : 0, "hidden" : 0, - "source" : [ "obj-2", 0 ] + "source" : [ "obj-7", 0 ] } } , { "patchline" : { - "destination" : [ "obj-10", 0 ], + "destination" : [ "obj-2", 3 ], "disabled" : 0, "hidden" : 0, - "source" : [ "obj-4", 0 ] + "source" : [ "obj-8", 0 ] } } , { "patchline" : { - "destination" : [ "obj-10", 2 ], + "destination" : [ "obj-2", 0 ], "disabled" : 0, "hidden" : 0, - "source" : [ "obj-7", 0 ] + "source" : [ "obj-9", 0 ] } } ], - "dependency_cache" : [ ], + "dependency_cache" : [ { + "name" : "cr.boardout.mxo", + "type" : "iLaX" + } + ], "autosave" : 0 } diff --git a/cr/interfaces/cr.boardin-obj-qlookup.json b/cr/interfaces/cr.boardin-obj-qlookup.json deleted file mode 100644 index 4226e6d4ca3fd9604abd0ec4f3ca834864445fa5..0000000000000000000000000000000000000000 --- a/cr/interfaces/cr.boardin-obj-qlookup.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "boardin": { - "digest": "Arduino UNO Object for input pins", - "module": "max", - "category": [ - "U/I" - ], - "palette": { - "category": [ - "Interface" - ], - "action": "boardin", - "pic": "boardin.svg" - } - } -} \ No newline at end of file diff --git a/cr/interfaces/cr.boardin.svg b/cr/interfaces/cr.boardin.svg deleted file mode 100644 index f610d823543fb3dc1292ab614001c85c5274cb2c..0000000000000000000000000000000000000000 Binary files a/cr/interfaces/cr.boardin.svg and /dev/null differ diff --git a/cr/interfaces/cr.boardout-obj-qlookup.json b/cr/interfaces/cr.boardout-obj-qlookup.json deleted file mode 100644 index c9c326f2d8260f50c7722b9b0a4794a36b94e2e7..0000000000000000000000000000000000000000 --- a/cr/interfaces/cr.boardout-obj-qlookup.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "boardout": { - "digest": "Arduino UNO Object for output pins", - "module": "max", - "category": [ - "U/I" - ], - "palette": { - "category": [ - "Interface" - ], - "action": "boardout", - "pic": "boardout.svg" - } - } -} \ No newline at end of file diff --git a/cr/interfaces/cr.boardout.svg b/cr/interfaces/cr.boardout.svg deleted file mode 100644 index f610d823543fb3dc1292ab614001c85c5274cb2c..0000000000000000000000000000000000000000 Binary files a/cr/interfaces/cr.boardout.svg and /dev/null differ diff --git a/cr/interfaces/cr.svg b/cr/interfaces/cr.svg deleted file mode 100644 index f610d823543fb3dc1292ab614001c85c5274cb2c..0000000000000000000000000000000000000000 Binary files a/cr/interfaces/cr.svg and /dev/null differ diff --git a/cr/license.md b/cr/license.md index d0feae71b95a00d1e6db99d553ffdda586641eb6..51a238d2fa5c2e59717414283db30f19f5093a7a 100644 --- a/cr/license.md +++ b/cr/license.md @@ -1 +1,2 @@ -License to be added. +License details to be added. +- Does CSE\UNSW has a prefered license? diff --git a/cr/overview.maxpat b/cr/overview.maxpat new file mode 100644 index 0000000000000000000000000000000000000000..5a35d10510f129a3133a43ab824e06e326129ee8 --- /dev/null +++ b/cr/overview.maxpat @@ -0,0 +1,532 @@ +{ + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 7, + "minor" : 3, + "revision" : 1, + "architecture" : "x64", + "modernui" : 1 + } +, + "rect" : [ 952.0, 295.0, 743.0, 579.0 ], + "bglocked" : 0, + "openinpresentation" : 0, + "default_fontsize" : 12.0, + "default_fontface" : 0, + "default_fontname" : "Arial", + "gridonopen" : 1, + "gridsize" : [ 15.0, 15.0 ], + "gridsnaponopen" : 1, + "objectsnaponopen" : 1, + "statusbarvisible" : 2, + "toolbarvisible" : 1, + "lefttoolbarpinned" : 0, + "toptoolbarpinned" : 0, + "righttoolbarpinned" : 0, + "bottomtoolbarpinned" : 0, + "toolbars_unpinned_last_save" : 0, + "tallnewobj" : 0, + "boxanimatetime" : 200, + "enablehscroll" : 1, + "enablevscroll" : 1, + "devicewidth" : 0.0, + "description" : "", + "digest" : "", + "tags" : "", + "style" : "", + "subpatcher_template" : "", + "showrootpatcherontab" : 0, + "showontab" : 0, + "boxes" : [ { + "box" : { + "id" : "obj-2", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 0, + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 7, + "minor" : 3, + "revision" : 1, + "architecture" : "x64", + "modernui" : 1 + } +, + "rect" : [ 0.0, 26.0, 743.0, 553.0 ], + "bglocked" : 0, + "openinpresentation" : 0, + "default_fontsize" : 12.0, + "default_fontface" : 0, + "default_fontname" : "Arial", + "gridonopen" : 1, + "gridsize" : [ 15.0, 15.0 ], + "gridsnaponopen" : 1, + "objectsnaponopen" : 1, + "statusbarvisible" : 2, + "toolbarvisible" : 1, + "lefttoolbarpinned" : 0, + "toptoolbarpinned" : 0, + "righttoolbarpinned" : 0, + "bottomtoolbarpinned" : 0, + "toolbars_unpinned_last_save" : 0, + "tallnewobj" : 0, + "boxanimatetime" : 200, + "enablehscroll" : 1, + "enablevscroll" : 1, + "devicewidth" : 0.0, + "description" : "", + "digest" : "", + "tags" : "", + "style" : "", + "subpatcher_template" : "", + "showontab" : 1, + "boxes" : [ ], + "lines" : [ ] + } +, + "patching_rect" : [ 190.0, 216.0, 73.0, 22.0 ], + "saved_object_attributes" : { + "description" : "", + "digest" : "", + "globalpatchername" : "", + "style" : "", + "tags" : "" + } +, + "style" : "", + "text" : "p Advanced" + } + + } +, { + "box" : { + "id" : "obj-1", + "maxclass" : "newobj", + "numinlets" : 0, + "numoutlets" : 0, + "patcher" : { + "fileversion" : 1, + "appversion" : { + "major" : 7, + "minor" : 3, + "revision" : 1, + "architecture" : "x64", + "modernui" : 1 + } +, + "rect" : [ 952.0, 321.0, 743.0, 553.0 ], + "bglocked" : 0, + "openinpresentation" : 0, + "default_fontsize" : 12.0, + "default_fontface" : 0, + "default_fontname" : "Arial", + "gridonopen" : 1, + "gridsize" : [ 15.0, 15.0 ], + "gridsnaponopen" : 1, + "objectsnaponopen" : 1, + "statusbarvisible" : 2, + "toolbarvisible" : 1, + "lefttoolbarpinned" : 0, + "toptoolbarpinned" : 0, + "righttoolbarpinned" : 0, + "bottomtoolbarpinned" : 0, + "toolbars_unpinned_last_save" : 0, + "tallnewobj" : 0, + "boxanimatetime" : 200, + "enablehscroll" : 1, + "enablevscroll" : 1, + "devicewidth" : 0.0, + "description" : "", + "digest" : "", + "tags" : "", + "style" : "", + "subpatcher_template" : "", + "showontab" : 1, + "boxes" : [ { + "box" : { + "id" : "obj-22", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 224.0, 462.0, 120.0, 20.0 ], + "style" : "", + "text" : "Arduino Uno Writer" + } + + } +, { + "box" : { + "id" : "obj-21", + "linecount" : 3, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 359.5, 338.5, 95.0, 47.0 ], + "style" : "", + "text" : "Reads Analog Values from the Potentiometer" + } + + } +, { + "box" : { + "id" : "obj-10", + "linecount" : 3, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 481.5, 226.5, 138.0, 47.0 ], + "style" : "", + "text" : "Reads Analog Pins: \n14 (A0 - temperature)\n18 (A4 - potentiometer)" + } + + } +, { + "box" : { + "fontface" : 1, + "fontsize" : 16.0, + "id" : "obj-20", + "linecount" : 2, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 83.0, 35.0, 611.0, 42.0 ], + "style" : "", + "text" : "Demo 1: Arduino UNO \nPotentiometer, LED Light, Servo, and a Temperature Sensor", + "textjustification" : 1 + } + + } +, { + "box" : { + "id" : "obj-19", + "linecount" : 2, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 378.5, 421.0, 79.0, 33.0 ], + "style" : "", + "text" : "Writes to the Servo Pin" + } + + } +, { + "box" : { + "id" : "obj-18", + "linecount" : 2, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 147.0, 295.5, 153.0, 33.0 ], + "style" : "", + "text" : "Reads Analog Values from the Temperature Sensor" + } + + } +, { + "box" : { + "id" : "obj-17", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 578.0, 394.0, 102.0, 20.0 ], + "style" : "", + "text" : "Turn LED On/Off" + } + + } +, { + "box" : { + "id" : "obj-16", + "linecount" : 3, + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 581.0, 448.5, 99.0, 47.0 ], + "style" : "", + "text" : "Writes to Pins:\nServo 9 (Servo)\nDigital 11 (LED)" + } + + } +, { + "box" : { + "id" : "obj-15", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 177.0, 239.0, 120.0, 20.0 ], + "style" : "", + "text" : "Arduino Uno Reader" + } + + } +, { + "box" : { + "id" : "obj-14", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 129.0, 422.0, 117.0, 20.0 ], + "style" : "", + "text" : "Print available ports" + } + + } +, { + "box" : { + "id" : "obj-13", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 83.0, 164.0, 117.0, 20.0 ], + "style" : "", + "text" : "Print available ports" + } + + } +, { + "box" : { + "id" : "obj-12", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 391.0, 163.0, 186.0, 20.0 ], + "style" : "", + "text" : "Determine speed of pins updates" + } + + } +, { + "box" : { + "id" : "obj-11", + "maxclass" : "comment", + "numinlets" : 1, + "numoutlets" : 0, + "patching_rect" : [ 352.5, 110.0, 163.0, 20.0 ], + "style" : "", + "text" : "Turn Analog Reader On/Off" + } + + } +, { + "box" : { + "id" : "obj-9", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 270.0, 421.0, 34.0, 22.0 ], + "style" : "", + "text" : "print" + } + + } +, { + "box" : { + "id" : "obj-8", + "maxclass" : "toggle", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 538.5, 392.0, 24.0, 24.0 ], + "style" : "" + } + + } +, { + "box" : { + "id" : "obj-7", + "maxclass" : "number", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "bang" ], + "parameter_enable" : 0, + "patching_rect" : [ 449.0, 392.0, 50.0, 22.0 ], + "style" : "" + } + + } +, { + "box" : { + "id" : "obj-6", + "maxclass" : "number", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "", "bang" ], + "parameter_enable" : 0, + "patching_rect" : [ 310.0, 301.0, 50.0, 22.0 ], + "style" : "" + } + + } +, { + "box" : { + "id" : "obj-5", + "maxclass" : "toggle", + "numinlets" : 1, + "numoutlets" : 1, + "outlettype" : [ "int" ], + "parameter_enable" : 0, + "patching_rect" : [ 309.0, 108.0, 24.0, 24.0 ], + "style" : "" + } + + } +, { + "box" : { + "id" : "obj-4", + "maxclass" : "newobj", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "bang" ], + "patching_rect" : [ 309.0, 159.0, 58.0, 22.0 ], + "style" : "", + "text" : "metro 80" + } + + } +, { + "box" : { + "id" : "obj-3", + "maxclass" : "message", + "numinlets" : 2, + "numoutlets" : 1, + "outlettype" : [ "" ], + "patching_rect" : [ 224.0, 163.0, 34.0, 22.0 ], + "style" : "", + "text" : "print" + } + + } +, { + "box" : { + "id" : "obj-2", + "maxclass" : "newobj", + "numinlets" : 3, + "numoutlets" : 0, + "patching_rect" : [ 359.5, 461.0, 198.0, 22.0 ], + "style" : "", + "text" : "cr.boardout a @servo 9 @digital 11" + } + + } +, { + "box" : { + "id" : "obj-1", + "maxclass" : "newobj", + "numinlets" : 1, + "numoutlets" : 2, + "outlettype" : [ "int", "int" ], + "patching_rect" : [ 310.0, 239.0, 158.0, 22.0 ], + "style" : "", + "text" : "cr.boardin a @analog 14 18" + } + + } + ], + "lines" : [ { + "patchline" : { + "destination" : [ "obj-6", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-1", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-7", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-1", 1 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-1", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-3", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-1", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-4", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-4", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-5", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-2", 1 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-7", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-2", 2 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-8", 0 ] + } + + } +, { + "patchline" : { + "destination" : [ "obj-2", 0 ], + "disabled" : 0, + "hidden" : 0, + "source" : [ "obj-9", 0 ] + } + + } + ] + } +, + "patching_rect" : [ 119.0, 113.0, 50.0, 22.0 ], + "saved_object_attributes" : { + "description" : "", + "digest" : "", + "globalpatchername" : "", + "style" : "", + "tags" : "" + } +, + "style" : "", + "text" : "p Basic" + } + + } + ], + "lines" : [ ], + "dependency_cache" : [ { + "name" : "cr.boardin.mxo", + "type" : "iLaX" + } +, { + "name" : "cr.boardout.mxo", + "type" : "iLaX" + } + ], + "autosave" : 0 + } + +} diff --git a/cr/package-info.json b/cr/package-info.json new file mode 100644 index 0000000000000000000000000000000000000000..72d8b737eda215865261cb78b78098c07a48cc57 --- /dev/null +++ b/cr/package-info.json @@ -0,0 +1,21 @@ +{ + "author" : "Creative Robotics Lab", + "description" : "Connects to Arduino UNO Board in Max.", + "homepatcher" : "overview.maxpat", + "max_version_min" : "7.3", + "max_version_max" : "none", + "name" : "cr", + "os" : { + "macintosh" : { + "platform" : [ "ia32", "x64" ], + "min_version" : "none" + } + }, + "package_extra" : { + "reverse_domain" : "au.edu.unsw.niea.crl", + "copyright" : "Copyright (c) 2017 CRL" + }, + "tags" : [ "arduino", "firmata", "robotics" ], + "version" : "0.0.1", + "website" : "http://www.crl.niea.unsw.edu.au" +} \ No newline at end of file diff --git a/cr/readme.md b/cr/readme.md index 7fb71d4ebcaec1091a04ca18ec40ad4cbfde66da..0d25833610de3b84ddcb4105f08bb18559ed29a0 100644 --- a/cr/readme.md +++ b/cr/readme.md @@ -1 +1,26 @@ -readme to be added. +CR Package Readme File. + +Install Max Package Instructions: +Once the cr package is downloaded, +1. Unzip it in any location (prefered: /Documents/Max 7/Packages). +2. Open Max (or Restart Max). +3. Open file browser window: File -> show file browser. +4. In the file browser window : press the + button (at the bottom left corner) ->add files to search path -> locate and select the cr folder you unzipped. + +Board Preparations: +1. Open Arduino. +2. Open Sketch File -> Examples -> Firmata -> StandardFirmata. +3. Upload the Sketch to Your UNO Board*. Make sure no errors in the console (Arduino window). + +* You may need to set the board and port first: +Tools -> Board -> Arduino/Genuino Uno +Tools -> Port -> (choose the correct port) + +Done. + +Usage Instructions: +1. Try first the overview patcher: overview.maxpat . +2. Help pages, references and Example Patchers are attached in the cr package. + + + diff --git a/cr/source/boardin/cr.boardin.xcodeproj/project.pbxproj b/cr/source/boardin/cr.boardin.xcodeproj/project.pbxproj deleted file mode 100755 index 9428de3d480a631e406ddc0953445a339a3358ba..0000000000000000000000000000000000000000 --- a/cr/source/boardin/cr.boardin.xcodeproj/project.pbxproj +++ /dev/null @@ -1,233 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 0C3533DA1F87027000671127 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0C3533D91F87027000671127 /* IOKit.framework */; }; - 0C3533DC1F87027E00671127 /* CoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0C3533DB1F87027E00671127 /* CoreFoundation.framework */; }; - 0C74099F1FC65F6600259E45 /* firmatalib.h in Headers */ = {isa = PBXBuildFile; fileRef = 0C74099B1FC65F6600259E45 /* firmatalib.h */; }; - 0C7409A01FC65F6600259E45 /* firmatalib.c in Sources */ = {isa = PBXBuildFile; fileRef = 0C74099C1FC65F6600259E45 /* firmatalib.c */; }; - 0C7409A11FC65F6600259E45 /* serial.h in Headers */ = {isa = PBXBuildFile; fileRef = 0C74099D1FC65F6600259E45 /* serial.h */; }; - 0C7409A21FC65F6600259E45 /* serial.c in Sources */ = {isa = PBXBuildFile; fileRef = 0C74099E1FC65F6600259E45 /* serial.c */; }; - 0C7409B11FC6620F00259E45 /* maxlib.h in Headers */ = {isa = PBXBuildFile; fileRef = 0C7409AF1FC6620F00259E45 /* maxlib.h */; }; - 0C7409B21FC6620F00259E45 /* maxlib.c in Sources */ = {isa = PBXBuildFile; fileRef = 0C7409B01FC6620F00259E45 /* maxlib.c */; }; - 22CF11AE0EE9A8840054F513 /* boardin.c in Sources */ = {isa = PBXBuildFile; fileRef = 22CF11AD0EE9A8840054F513 /* boardin.c */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - 0C3533D91F87027000671127 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = System/Library/Frameworks/IOKit.framework; sourceTree = SDKROOT; }; - 0C3533DB1F87027E00671127 /* CoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreFoundation.framework; path = System/Library/Frameworks/CoreFoundation.framework; sourceTree = SDKROOT; }; - 0C74099B1FC65F6600259E45 /* firmatalib.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = firmatalib.h; path = ../../../../../../../../../../Users/orly/Documents/FirmataClient/firmatalib.h; sourceTree = ""; }; - 0C74099C1FC65F6600259E45 /* firmatalib.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = firmatalib.c; path = ../../../../../../../../../../Users/orly/Documents/FirmataClient/firmatalib.c; sourceTree = ""; }; - 0C74099D1FC65F6600259E45 /* serial.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = serial.h; path = ../../../../../../../../../../Users/orly/Documents/FirmataClient/serial.h; sourceTree = ""; }; - 0C74099E1FC65F6600259E45 /* serial.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = serial.c; path = ../../../../../../../../../../Users/orly/Documents/FirmataClient/serial.c; sourceTree = ""; }; - 0C7409AF1FC6620F00259E45 /* maxlib.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = maxlib.h; path = ../../../../../../../../../../Users/orly/Documents/FirmataClient/maxlib.h; sourceTree = ""; }; - 0C7409B01FC6620F00259E45 /* maxlib.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = maxlib.c; path = ../../../../../../../../../../Users/orly/Documents/FirmataClient/maxlib.c; sourceTree = ""; }; - 22CF10220EE984600054F513 /* maxmspsdk.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = maxmspsdk.xcconfig; path = ../../maxmspsdk.xcconfig; sourceTree = SOURCE_ROOT; }; - 22CF11AD0EE9A8840054F513 /* boardin.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = boardin.c; sourceTree = ""; }; - 2FBBEAE508F335360078DB84 /* boardin.mxo */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = boardin.mxo; sourceTree = BUILT_PRODUCTS_DIR; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 2FBBEADC08F335360078DB84 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 0C3533DC1F87027E00671127 /* CoreFoundation.framework in Frameworks */, - 0C3533DA1F87027000671127 /* IOKit.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 089C166AFE841209C02AAC07 /* iterator */ = { - isa = PBXGroup; - children = ( - 0C7409AF1FC6620F00259E45 /* maxlib.h */, - 0C7409B01FC6620F00259E45 /* maxlib.c */, - 0C74099B1FC65F6600259E45 /* firmatalib.h */, - 0C74099C1FC65F6600259E45 /* firmatalib.c */, - 0C74099D1FC65F6600259E45 /* serial.h */, - 0C74099E1FC65F6600259E45 /* serial.c */, - 22CF10220EE984600054F513 /* maxmspsdk.xcconfig */, - 22CF11AD0EE9A8840054F513 /* boardin.c */, - 19C28FB4FE9D528D11CA2CBB /* Products */, - 0C3533D81F87027000671127 /* Frameworks */, - ); - name = iterator; - sourceTree = ""; - }; - 0C3533D81F87027000671127 /* Frameworks */ = { - isa = PBXGroup; - children = ( - 0C3533DB1F87027E00671127 /* CoreFoundation.framework */, - 0C3533D91F87027000671127 /* IOKit.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; - 19C28FB4FE9D528D11CA2CBB /* Products */ = { - isa = PBXGroup; - children = ( - 2FBBEAE508F335360078DB84 /* boardin.mxo */, - ); - name = Products; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXHeadersBuildPhase section */ - 2FBBEAD708F335360078DB84 /* Headers */ = { - isa = PBXHeadersBuildPhase; - buildActionMask = 2147483647; - files = ( - 0C7409A11FC65F6600259E45 /* serial.h in Headers */, - 0C7409B11FC6620F00259E45 /* maxlib.h in Headers */, - 0C74099F1FC65F6600259E45 /* firmatalib.h in Headers */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXHeadersBuildPhase section */ - -/* Begin PBXNativeTarget section */ - 2FBBEAD608F335360078DB84 /* max-external */ = { - isa = PBXNativeTarget; - buildConfigurationList = 2FBBEAE008F335360078DB84 /* Build configuration list for PBXNativeTarget "max-external" */; - buildPhases = ( - 2FBBEAD708F335360078DB84 /* Headers */, - 2FBBEAD808F335360078DB84 /* Resources */, - 2FBBEADA08F335360078DB84 /* Sources */, - 2FBBEADC08F335360078DB84 /* Frameworks */, - 2FBBEADF08F335360078DB84 /* Rez */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "max-external"; - productName = iterator; - productReference = 2FBBEAE508F335360078DB84 /* boardin.mxo */; - productType = "com.apple.product-type.bundle"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 089C1669FE841209C02AAC07 /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0830; - }; - buildConfigurationList = 2FBBEACF08F335010078DB84 /* Build configuration list for PBXProject "boardin" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 1; - knownRegions = ( - en, - ); - mainGroup = 089C166AFE841209C02AAC07 /* iterator */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 2FBBEAD608F335360078DB84 /* max-external */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 2FBBEAD808F335360078DB84 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXRezBuildPhase section */ - 2FBBEADF08F335360078DB84 /* Rez */ = { - isa = PBXRezBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXRezBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 2FBBEADA08F335360078DB84 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 0C7409A21FC65F6600259E45 /* serial.c in Sources */, - 0C7409A01FC65F6600259E45 /* firmatalib.c in Sources */, - 0C7409B21FC6620F00259E45 /* maxlib.c in Sources */, - 22CF11AE0EE9A8840054F513 /* boardin.c in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin XCBuildConfiguration section */ - 2FBBEAD008F335010078DB84 /* Development */ = { - isa = XCBuildConfiguration; - buildSettings = { - }; - name = Development; - }; - 2FBBEAD108F335010078DB84 /* Deployment */ = { - isa = XCBuildConfiguration; - buildSettings = { - }; - name = Deployment; - }; - 2FBBEAE108F335360078DB84 /* Development */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 22CF10220EE984600054F513 /* maxmspsdk.xcconfig */; - buildSettings = { - COPY_PHASE_STRIP = NO; - GCC_OPTIMIZATION_LEVEL = 0; - OTHER_LDFLAGS = "$(C74_SYM_LINKER_FLAGS)"; - PRODUCT_NAME = boardin; - }; - name = Development; - }; - 2FBBEAE208F335360078DB84 /* Deployment */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 22CF10220EE984600054F513 /* maxmspsdk.xcconfig */; - buildSettings = { - COPY_PHASE_STRIP = YES; - OTHER_LDFLAGS = "$(C74_SYM_LINKER_FLAGS)"; - PRODUCT_NAME = boardin; - }; - name = Deployment; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 2FBBEACF08F335010078DB84 /* Build configuration list for PBXProject "boardin" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 2FBBEAD008F335010078DB84 /* Development */, - 2FBBEAD108F335010078DB84 /* Deployment */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Development; - }; - 2FBBEAE008F335360078DB84 /* Build configuration list for PBXNativeTarget "max-external" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 2FBBEAE108F335360078DB84 /* Development */, - 2FBBEAE208F335360078DB84 /* Deployment */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Development; - }; -/* End XCConfigurationList section */ - }; - rootObject = 089C1669FE841209C02AAC07 /* Project object */; -} diff --git a/cr/source/boardin/cr.boardin.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/cr/source/boardin/cr.boardin.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 27f8377965d2932ad9452474b45b5670f5487322..0000000000000000000000000000000000000000 --- a/cr/source/boardin/cr.boardin.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/cr/source/boardin/cr.boardin.xcodeproj/project.xcworkspace/xcuserdata/orly.xcuserdatad/UserInterfaceState.xcuserstate b/cr/source/boardin/cr.boardin.xcodeproj/project.xcworkspace/xcuserdata/orly.xcuserdatad/UserInterfaceState.xcuserstate deleted file mode 100644 index f0496c51fc72b4017aa670d2454e1e984512c8d3..0000000000000000000000000000000000000000 Binary files a/cr/source/boardin/cr.boardin.xcodeproj/project.xcworkspace/xcuserdata/orly.xcuserdatad/UserInterfaceState.xcuserstate and /dev/null differ diff --git a/cr/source/boardin/cr.boardin.xcodeproj/xcuserdata/orly.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/cr/source/boardin/cr.boardin.xcodeproj/xcuserdata/orly.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist deleted file mode 100644 index 0dd296e9f202b9dbc6dcd099f1afd0118e301b5e..0000000000000000000000000000000000000000 --- a/cr/source/boardin/cr.boardin.xcodeproj/xcuserdata/orly.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/cr/source/boardin/cr.boardin.xcodeproj/xcuserdata/orly.xcuserdatad/xcschemes/max-external.xcscheme b/cr/source/boardin/cr.boardin.xcodeproj/xcuserdata/orly.xcuserdatad/xcschemes/max-external.xcscheme deleted file mode 100644 index 5fc27560691b4d524860c8f2e300af9523253b1b..0000000000000000000000000000000000000000 --- a/cr/source/boardin/cr.boardin.xcodeproj/xcuserdata/orly.xcuserdatad/xcschemes/max-external.xcscheme +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/cr/source/boardin/cr.boardin.xcodeproj/xcuserdata/orly.xcuserdatad/xcschemes/xcschememanagement.plist b/cr/source/boardin/cr.boardin.xcodeproj/xcuserdata/orly.xcuserdatad/xcschemes/xcschememanagement.plist deleted file mode 100644 index d70c3e6609bb71e9ae46e8593636c0e5eb5b6bc2..0000000000000000000000000000000000000000 --- a/cr/source/boardin/cr.boardin.xcodeproj/xcuserdata/orly.xcuserdatad/xcschemes/xcschememanagement.plist +++ /dev/null @@ -1,24 +0,0 @@ - - - - - SchemeUserState - - max-external.xcscheme - - isShown - - orderHint - 0 - - - SuppressBuildableAutocreation - - 2FBBEAD608F335360078DB84 - - primary - - - - -