aboutsummaryrefslogtreecommitdiff
path: root/usbhid-help.pd
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-05-25 12:33:33 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-05-25 12:33:33 +0000
commitdfd1efa563149628f670b44e8c46b911fc880f54 (patch)
treebbb4516fcbe741c7e825753d376fcbd142ec034a /usbhid-help.pd
parent686772d4cf8bc0bec4a9ac33e0a23fd6c6d1c4de (diff)
message naming makes more sense now, and there is more status info; don't know if writing works yet, probably needs some work
svn path=/trunk/externals/hcs/; revision=5118
Diffstat (limited to 'usbhid-help.pd')
-rw-r--r--usbhid-help.pd141
1 files changed, 93 insertions, 48 deletions
diff --git a/usbhid-help.pd b/usbhid-help.pd
index bc152a6..08127b2 100644
--- a/usbhid-help.pd
+++ b/usbhid-help.pd
@@ -1,30 +1,17 @@
-#N canvas 338 93 633 511 10;
-#X obj 111 373 usbhid;
-#X msg 184 111 close;
-#X msg 184 137 reset;
-#X obj 6 408 print left;
-#X obj 175 410 print right;
-#X text 195 174 [read page# usage# ...(;
-#X text 208 223 [write page# usage# ...(;
-#X msg 217 244 set write 1 30 1 31 1 38;
-#X text 233 288 GARBAGE FOR TESTING;
-#X msg 250 322 set read 1 30 word 1 31 1 38;
+#N canvas 254 84 629 549 10;
+#X obj 132 376 usbhid;
+#X msg 184 91 close;
+#X msg 184 117 reset;
+#X text 240 307 GARBAGE FOR TESTING;
#X msg 197 155 print;
-#X msg 176 91 open 1149 16392;
-#X text 297 91 Gravis/Destroyer Tiltpad;
-#X text 261 63 Microsoft 5-button Mouse;
-#X msg 171 63 open 1118 57;
-#X msg 159 42 open 1452 517;
-#X text 258 42 Mitsumi Electric Apple Extended USB Keyboard;
-#X msg 258 350 open 1118 57 \, get read;
-#X msg 204 195 set read 1 2 1 48;
-#X msg 221 267 get read;
-#N canvas 0 22 454 304 buttons 0;
+#X text 317 72 Gravis/Destroyer Tiltpad;
+#X text 311 43 Microsoft 5-button Mouse;
+#N canvas 0 22 462 312 buttons 0;
#X obj 99 36 inlet;
#X obj 63 108 & 1;
#X obj 63 130 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
-#X obj 93 130 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
+#X obj 93 130 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 2
;
#X obj 123 130 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
4;
@@ -33,11 +20,11 @@
#X obj 183 130 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
16;
#X obj 223 130 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
-1;
+32;
#X obj 263 130 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X obj 303 130 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
-1;
+128;
#X obj 93 108 & 2;
#X obj 123 108 & 4;
#X obj 153 108 & 8;
@@ -61,34 +48,92 @@
#X connect 14 0 7 0;
#X connect 15 0 8 0;
#X connect 16 0 9 0;
-#X restore 44 482 pd buttons test;
-#X obj 106 429 unpack float float float float;
+#X restore 65 515 pd buttons test;
+#X obj 127 462 unpack float float float float;
#X obj 44 83 metro 400;
#X obj 46 57 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
-#X floatatom 165 466 5 0 0 0 - - -;
-#X floatatom 235 467 5 0 0 0 - - -;
-#X floatatom 315 462 5 0 0 0 - - -;
-#X msg 44 104 read 4;
-#X msg 50 11 open vendorId productId;
-#X text 220 11 these are in decimal \, rather than the usual hex;
-#X connect 0 0 21 0;
-#X connect 0 1 4 0;
+#X floatatom 186 499 5 0 0 0 - - -;
+#X floatatom 256 500 5 0 0 0 - - -;
+#X floatatom 336 495 5 0 0 0 - - -;
+#X msg 171 43 open 0x045e 0x0039;
+#X msg 157 13 open vendorId productId;
+#X msg 176 71 open 0x047D 0x4008;
+#X floatatom 125 496 5 0 0 0 - - -;
+#X msg 239 273 debug \$1;
+#X obj 239 251 hradio 15 1 0 10 empty empty empty 0 -6 0 8 -262144
+-1 -1 0;
+#X obj 27 441 print data;
+#N canvas 458 151 454 485 parsing 0;
+#X obj 77 6 inlet;
+#X obj 80 101 route float symbol;
+#X obj 80 190 mapping/tolist;
+#X obj 139 137 trigger symbol bang;
+#X msg 22 139 bang;
+#X obj 81 226 list trim;
+#X obj 241 312 print;
+#X obj 80 272 route path;
+#X obj 34 328 print path-------------;
+#X obj 78 31 list-abs/list-drip;
+#X obj 198 51 trigger bang bang;
+#X obj 247 89 print end---------;
+#X connect 0 0 9 0;
+#X connect 1 0 2 0;
+#X connect 1 1 3 0;
+#X connect 2 0 5 0;
+#X connect 3 0 2 0;
+#X connect 3 1 2 1;
+#X connect 4 0 2 0;
+#X connect 5 0 7 0;
+#X connect 7 0 8 0;
+#X connect 7 1 6 0;
+#X connect 9 0 1 0;
+#X connect 9 1 10 0;
+#X connect 10 0 2 1;
+#X connect 10 1 11 0;
+#X restore 226 418 pd parsing;
+#X text 8 122 how many bytes to read;
+#X msg 194 136 refresh;
+#X text 259 137 reinit and refresh device list;
+#X text 233 117 resets device (don't really know what that does tho)
+;
+#X obj 171 419 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1
+1;
+#X obj 171 397 route open device;
+#X msg 44 104 get 4;
+#X msg 82 137 get 2;
+#X msg 212 179 descriptor;
+#X text 291 179 get descriptor;
+#X msg 219 213 descriptor 1 30 1 31 1 38;
+#X text 398 212 [descriptor page# usage# ...(;
+#X text 218 197 for writing to the device:;
+#X msg 25 208 set 2;
+#X msg 237 323 close \, open 0x045e 0x0039 \, descriptor;
+#X text 183 382 <- status outlet;
+#X text 21 383 data outlet ->;
+#X connect 0 0 8 0;
+#X connect 0 0 20 0;
+#X connect 0 1 27 0;
#X connect 1 0 0 0;
#X connect 2 0 0 0;
-#X connect 7 0 0 0;
-#X connect 9 0 0 0;
-#X connect 10 0 0 0;
-#X connect 11 0 0 0;
+#X connect 4 0 0 0;
+#X connect 8 0 7 0;
+#X connect 8 0 17 0;
+#X connect 8 1 11 0;
+#X connect 8 2 12 0;
+#X connect 8 3 13 0;
+#X connect 9 0 28 0;
+#X connect 10 0 9 0;
#X connect 14 0 0 0;
-#X connect 15 0 0 0;
-#X connect 17 0 0 0;
+#X connect 16 0 0 0;
#X connect 18 0 0 0;
-#X connect 19 0 0 0;
-#X connect 21 0 20 0;
-#X connect 21 1 24 0;
-#X connect 21 2 25 0;
-#X connect 21 3 26 0;
-#X connect 22 0 27 0;
-#X connect 23 0 22 0;
-#X connect 27 0 0 0;
+#X connect 19 0 18 0;
+#X connect 23 0 0 0;
+#X connect 27 0 26 0;
+#X connect 27 1 21 0;
+#X connect 28 0 0 0;
+#X connect 29 0 0 0;
+#X connect 30 0 0 0;
+#X connect 32 0 0 0;
+#X connect 35 0 0 0;
+#X connect 36 0 0 0;