Skip to content

Instantly share code, notes, and snippets.

@MitchRatquest
Created June 13, 2016 18:03
Show Gist options
  • Save MitchRatquest/fc121457cf7f82adc40406898a5f5aae to your computer and use it in GitHub Desktop.
Save MitchRatquest/fc121457cf7f82adc40406898a5f5aae to your computer and use it in GitHub Desktop.
#N canvas 296 286 808 492 10;
#X declare -lib mrpeach;
#X declare -lib moocow;
#X msg 543 65 close;
#X msg 637 66 devices;
#N canvas 0 309 789 479 bauds 0;
#X msg 319 274 baud 57600;
#X msg 357 312 baud 230400;
#X msg 338 293 baud 115200;
#X msg 300 255 baud 38400;
#X msg 281 236 baud 19200;
#X msg 262 217 baud 9600;
#X msg 243 198 baud 4800;
#X msg 224 179 baud 2400;
#X obj 431 403 s comctl;
#X msg 205 160 baud 1800;
#X msg 186 141 baud 1200;
#X msg 167 122 baud 600;
#X msg 148 103 baud 300;
#X msg 129 84 baud 200;
#X msg 91 46 baud 134;
#X msg 72 27 baud 110;
#X msg 53 8 baud 75;
#X msg 34 -11 baud 50;
#X msg 15 -30 baud 0;
#X msg 110 65 baud 150;
#X text 368 255 this is a special baud rate that can be configured
;
#X text 12 -48 standard baud rates for linux:;
#X text 64 -31 0 deasserts control lines and resets the serial port
;
#X text 435 312 won't work with standard setup. See setserial;
#X msg 431 231 baud \$1;
#X text 518 269 on-the-fly with setserial:;
#X text 519 298 gives 14400 baud instead of 38400;
#X text 517 284 "setserial /dev/ttyS0 spd_cust divisor 8";
#X msg 419 163 115200;
#X floatatom 392 104 7 1 115200 1 divisor - -;
#X obj 431 192 / 1;
#X obj 392 123 sel 0;
#X floatatom 431 212 7 0 0 0 - - -;
#X text 482 103 (1-115200);
#X obj 419 143 t b f;
#X text 390 86 On Windows some other baud rates might work:;
#X connect 0 0 8 0;
#X connect 1 0 8 0;
#X connect 2 0 8 0;
#X connect 3 0 8 0;
#X connect 4 0 8 0;
#X connect 5 0 8 0;
#X connect 6 0 8 0;
#X connect 7 0 8 0;
#X connect 9 0 8 0;
#X connect 10 0 8 0;
#X connect 11 0 8 0;
#X connect 12 0 8 0;
#X connect 13 0 8 0;
#X connect 14 0 8 0;
#X connect 15 0 8 0;
#X connect 16 0 8 0;
#X connect 17 0 8 0;
#X connect 18 0 8 0;
#X connect 19 0 8 0;
#X connect 24 0 8 0;
#X connect 28 0 30 0;
#X connect 29 0 31 0;
#X connect 30 0 32 0;
#X connect 31 1 34 0;
#X connect 32 0 24 0;
#X connect 34 0 28 0;
#X connect 34 1 30 1;
#X restore 541 155 pd bauds;
#X obj 101 94 r comctl;
#X obj 587 93 s comctl;
#X msg 542 132 devicename /dev/ttyS1;
#X obj 435 76 import mrpeach;
#X obj 435 31 loadbang;
#X obj 102 134 slipdec;
#X obj 102 158 unpackOSC;
#X obj 587 35 loadbang;
#X obj -32 302 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj -8 302 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 16 302 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 39 302 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 435 54 import moocow;
#X obj 62 250 route 0 1 2 3 4 5 6 7;
#X obj 102 113 comport 1 57600;
#X msg 587 65 open 1;
#X text 155 136 port 1 /dev/ttyUSB0;
#X msg 435 129 baud 57600;
#X obj 435 152 s comctl;
#X obj 436 98 s loadbang;
#N canvas 124 416 450 300 controlstuff 0;
#N canvas 808 87 635 400 sendControl 0;
#X obj 325 61 inlet;
#X obj -53 67 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
1;
#X obj -43 134 spigot;
#X obj -52 166 spigot;
#X obj 329 173 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 329 224 == 0;
#X obj 329 250 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 155 239 spigot;
#X obj 96 92 spigot;
#X obj 186 76 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X msg 380 238 0;
#X msg 375 163 1;
#X obj 378 188 t b;
#X obj 91 318 outlet;
#X obj -53 40 loadbang;
#X text 174 291 ascii 8 5 \,;
#X text 97 42 ascii 9 4 \,;
#X text 326 318 for arduino code;
#X text 219 339 if(Serial.parseInt() == 94)digitalWrite(12 \, HIGH)
\;;
#X text 218 354 if(Serial.parseInt() == 85)digitalWrite(12 \, LOW)
\;;
#X obj 379 212 delay 20;
#X obj -50 96 metro 7;
#X msg 93 119 49 44;
#X msg 156 260 50 44;
#X connect 0 0 4 0;
#X connect 1 0 21 0;
#X connect 2 0 8 0;
#X connect 3 0 7 0;
#X connect 4 0 5 0;
#X connect 4 0 2 1;
#X connect 4 0 11 0;
#X connect 4 0 12 0;
#X connect 5 0 6 0;
#X connect 6 0 3 1;
#X connect 7 0 23 0;
#X connect 8 0 22 0;
#X connect 9 0 7 1;
#X connect 9 0 8 1;
#X connect 10 0 9 0;
#X connect 11 0 9 0;
#X connect 12 0 20 0;
#X connect 14 0 1 0;
#X connect 20 0 10 0;
#X connect 21 0 2 0;
#X connect 21 0 3 0;
#X connect 22 0 13 0;
#X connect 23 0 13 0;
#X restore 55 113 pd sendControl;
#X obj 55 85 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1
;
#X obj 55 56 metro 200;
#X obj 55 22 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1
;
#X obj 55 141 s comctl;
#X text 257 38 TO BE DISPLAYED ON SCREEN;
#X obj 196 112 any2bytes 128 <;
#X msg 196 84 THANK U FOR SHOPPING;
#X msg 196 61 FUCK ME UP PLEASE THANK U;
#X obj 264 132 print AT COMMAND;
#X text 199 207 Scroll speed;
#X msg 46 245 65 84 68 1;
#X msg 46 269 65 84 68 0;
#X msg 47 222 65 84 66 127 127 0 0 62;
#X msg 46 300 65 84 67 1;
#X msg 46 325 65 84 67 0;
#X text 162 254 SCROLL TYPE;
#X text 165 308 LANGUAGE;
#X obj 47 351 s comctl;
#X text 121 301 KANJI;
#X text 118 325 ENGLISH;
#X text 117 248 FLASH;
#X text 114 270 SCROLL;
#X msg 47 201 65 84 66 80 0 0 0 62;
#X obj 196 40 r ToCom;
#X text 43 176 COMMNANDS IF ANY TO ARDUINO;
#X obj 196 133 s comctl;
#X connect 0 0 4 0;
#X connect 1 0 0 0;
#X connect 2 0 1 0;
#X connect 3 0 2 0;
#X connect 6 0 9 0;
#X connect 6 0 26 0;
#X connect 7 0 6 0;
#X connect 8 0 6 0;
#X connect 11 0 18 0;
#X connect 12 0 18 0;
#X connect 13 0 18 0;
#X connect 14 0 18 0;
#X connect 15 0 18 0;
#X connect 23 0 18 0;
#X connect 24 0 6 0;
#X restore 439 236 pd controlstuff;
#X obj 102 189 routeOSC /radio;
#X text 434 216 MISC obselete shit;
#X obj 258 251 route 8 9 10 11 12 13 14;
#X obj 64 302 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 117 306 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 141 306 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 164 306 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X text -58 253 rotary switch;
#X obj 187 306 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 211 306 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 234 306 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 261 306 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X text 158 276 FRONT BUTTONS;
#X floatatom 310 306 5 0 0 0 - - -;
#X floatatom 351 306 5 0 0 0 - - -;
#X floatatom 391 306 5 0 0 0 - - -;
#X text 448 305 KNOBS;
#X connect 0 0 4 0;
#X connect 1 0 4 0;
#X connect 3 0 17 0;
#X connect 7 0 6 0;
#X connect 7 0 15 0;
#X connect 7 0 22 0;
#X connect 8 0 9 0;
#X connect 9 0 24 0;
#X connect 10 0 18 0;
#X connect 16 0 11 0;
#X connect 16 1 12 0;
#X connect 16 2 13 0;
#X connect 16 3 14 0;
#X connect 16 4 27 0;
#X connect 16 5 28 0;
#X connect 16 6 29 0;
#X connect 16 7 30 0;
#X connect 17 0 8 0;
#X connect 18 0 4 0;
#X connect 20 0 21 0;
#X connect 24 0 16 0;
#X connect 24 0 26 0;
#X connect 26 0 32 0;
#X connect 26 1 33 0;
#X connect 26 2 34 0;
#X connect 26 3 35 0;
#X connect 26 4 37 0;
#X connect 26 5 38 0;
#X connect 26 6 39 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment