Browse Source

update processing, circuit and arduino sketches

develop
Dslak 5 years ago
parent
commit
e271511465
  1. 129
      V3-WeMos/Arduino/Left/Left.ino
  2. 129
      V3-WeMos/Arduino/Right/Right.ino
  3. BIN
      V3-WeMos/Circuit/CIRCUIT.pdf
  4. 79
      V3-WeMos/Circuit/CIRCUIT.svg
  5. 27
      V3-WeMos/ProcessingTestReceive/ProcessingTestReceive.pde
  6. 0
      V3-WeMos/Tests/ESP8266sendMessage/ESP8266sendMessage.ino
  7. 105
      V3-WeMos/Tests/ProcessingTestReceive/ProcessingTestReceive.pde

129
V3-WeMos/Arduino/Left/Left.ino

@ -0,0 +1,129 @@
#include <Wire.h>
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
#include <OSCMessage.h>
#include <SPI.h>
const int MPU=0x68;
int16_t AcX,AcY,AcZ;
char ssid[] = "NETGEAR41";
char pass[] = "magicalbanana0";
WiFiUDP Udp;
const IPAddress outIp(192,168,0,29); // remote IP of receiver computer
const unsigned int outPort = 7000; // remote port to receive OSC
int fingerGround = 15;
int fingerSignal = 18;
int finger1 = 16;
int finger2 = 14;
int finger3 = 12;
int finger4 = 13;
void setup() {
Wire.begin();
Wire.beginTransmission(MPU);
Wire.write(0x6B);
Wire.write(0);
Wire.endTransmission(true);
Serial.begin(115200);
Serial.print("Connecting to ");
Serial.println(ssid);
WiFi.begin(ssid, pass);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi connected");
Serial.println("IP address: ");
Serial.println(WiFi.localIP());
pinMode(fingerSignal, OUTPUT);
pinMode(fingerGround, OUTPUT);
digitalWrite(fingerSignal, HIGH);
digitalWrite(fingerGround, LOW);
pinMode(finger1, INPUT);
pinMode(finger2, INPUT);
pinMode(finger3, INPUT);
pinMode(finger4, INPUT);
}
void loop() {
Wire.beginTransmission(MPU);
Wire.write(0x3B);
Wire.endTransmission(false);
Wire.requestFrom(MPU,14);
AcX=Wire.read()<<8|Wire.read();
AcY=Wire.read()<<8|Wire.read();
AcZ=Wire.read()<<8|Wire.read();
Serial.print(AcX);
Serial.print("\t");
Serial.print(AcY);
Serial.print("\t");
Serial.print(digitalRead(finger1));
Serial.print("\t");
Serial.print(digitalRead(finger2));
Serial.print("\t");
Serial.print(digitalRead(finger3));
Serial.print("\t");
Serial.print(digitalRead(finger4));
Serial.println("\t");
//Serial.println(AcZ);
OSCMessage msgLX("/movedulation/sliderLX");
msgLX.add(AcX);
Udp.beginPacket(outIp, outPort);
msgLX.send(Udp);
Udp.endPacket();
msgLX.empty();
OSCMessage msgLY("/movedulation/sliderLY");
msgLY.add(AcY);
Udp.beginPacket(outIp, outPort);
msgLY.send(Udp);
Udp.endPacket();
msgLY.empty();
OSCMessage msgL1("/movedulation/toggleL1");
msgL1.add(digitalRead(finger1));
Udp.beginPacket(outIp, outPort);
msgL1.send(Udp);
Udp.endPacket();
msgL1.empty();
OSCMessage msgL2("/movedulation/toggleL2");
msgL2.add(digitalRead(finger2));
Udp.beginPacket(outIp, outPort);
msgL2.send(Udp);
Udp.endPacket();
msgL2.empty();
OSCMessage msgL3("/movedulation/toggleL3");
msgL3.add(digitalRead(finger3));
Udp.beginPacket(outIp, outPort);
msgL3.send(Udp);
Udp.endPacket();
msgL3.empty();
OSCMessage msgL4("/movedulation/toggleL4");
msgL4.add(digitalRead(finger4));
Udp.beginPacket(outIp, outPort);
msgL4.send(Udp);
Udp.endPacket();
msgL4.empty();
delay(100);
}

129
V3-WeMos/Arduino/Right/Right.ino

@ -0,0 +1,129 @@
#include <Wire.h>
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
#include <OSCMessage.h>
#include <SPI.h>
const int MPU=0x68;
int16_t AcX,AcY,AcZ;
char ssid[] = "NETGEAR41";
char pass[] = "magicalbanana0";
WiFiUDP Udp;
const IPAddress outIp(192,168,0,29); // remote IP of receiver computer
const unsigned int outPort = 7000; // remote port to receive OSC
int fingerGround = 15;
int fingerSignal = 18;
int finger1 = 16;
int finger2 = 14;
int finger3 = 12;
int finger4 = 13;
void setup() {
Wire.begin();
Wire.beginTransmission(MPU);
Wire.write(0x6B);
Wire.write(0);
Wire.endTransmission(true);
Serial.begin(115200);
Serial.print("Connecting to ");
Serial.println(ssid);
WiFi.begin(ssid, pass);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi connected");
Serial.println("IP address: ");
Serial.println(WiFi.localIP());
pinMode(fingerSignal, OUTPUT);
pinMode(fingerGround, OUTPUT);
digitalWrite(fingerSignal, HIGH);
digitalWrite(fingerGround, LOW);
pinMode(finger1, INPUT);
pinMode(finger2, INPUT);
pinMode(finger3, INPUT);
pinMode(finger4, INPUT);
}
void loop() {
Wire.beginTransmission(MPU);
Wire.write(0x3B);
Wire.endTransmission(false);
Wire.requestFrom(MPU,14);
AcX=Wire.read()<<8|Wire.read();
AcY=Wire.read()<<8|Wire.read();
AcZ=Wire.read()<<8|Wire.read();
Serial.print(AcX);
Serial.print("\t");
Serial.print(AcY);
Serial.print("\t");
Serial.print(digitalRead(finger1));
Serial.print("\t");
Serial.print(digitalRead(finger2));
Serial.print("\t");
Serial.print(digitalRead(finger3));
Serial.print("\t");
Serial.print(digitalRead(finger4));
Serial.println("\t");
//Serial.println(AcZ);
OSCMessage msgRX("/movedulation/sliderRX");
msgRX.add(AcX);
Udp.beginPacket(outIp, outPort);
msgRX.send(Udp);
Udp.endPacket();
msgRX.empty();
OSCMessage msgRY("/movedulation/sliderRY");
msgRY.add(AcY);
Udp.beginPacket(outIp, outPort);
msgRY.send(Udp);
Udp.endPacket();
msgRY.empty();
OSCMessage msgR1("/movedulation/toggleR1");
msgR1.add(digitalRead(finger1));
Udp.beginPacket(outIp, outPort);
msgR1.send(Udp);
Udp.endPacket();
msgR1.empty();
OSCMessage msgR2("/movedulation/toggleR2");
msgR2.add(digitalRead(finger2));
Udp.beginPacket(outIp, outPort);
msgR2.send(Udp);
Udp.endPacket();
msgR2.empty();
OSCMessage msgR3("/movedulation/toggleR3");
msgR3.add(digitalRead(finger3));
Udp.beginPacket(outIp, outPort);
msgR3.send(Udp);
Udp.endPacket();
msgR3.empty();
OSCMessage msgR4("/movedulation/toggleR4");
msgR4.add(digitalRead(finger4));
Udp.beginPacket(outIp, outPort);
msgR4.send(Udp);
Udp.endPacket();
msgR4.empty();
delay(100);
}

BIN
V3-WeMos/Circuit/CIRCUIT.pdf

Binary file not shown.

79
V3-WeMos/Circuit/CIRCUIT.svg

@ -22,11 +22,11 @@
borderopacity="1.0" borderopacity="1.0"
inkscape:pageopacity="1" inkscape:pageopacity="1"
inkscape:pageshadow="2" inkscape:pageshadow="2"
inkscape:zoom="1.4142136"
inkscape:cx="-56.566571"
inkscape:cy="122.91612"
inkscape:zoom="1.8093187"
inkscape:cx="26.390576"
inkscape:cy="37.611486"
inkscape:document-units="cm" inkscape:document-units="cm"
inkscape:current-layer="g6108"
inkscape:current-layer="g2383"
showgrid="true" showgrid="true"
inkscape:window-width="1366" inkscape:window-width="1366"
inkscape:window-height="719" inkscape:window-height="719"
@ -389,6 +389,11 @@
id="path2501" id="path2501"
d="m -848.73422,921.21359 c -1.2858,-1.86754 -3.88474,-2.3456 -5.75227,-1.05981 -1.86753,1.2858 -2.3467,3.88313 -1.0609,5.75067 1.28579,1.86754 3.88312,2.34669 5.75066,1.0609 1.86754,-1.28579 2.34832,-3.88423 1.06251,-5.75176 z m -2.30807,1.5891 c 0.42721,0.6205 0.27806,1.42897 -0.34244,1.85619 -0.62051,0.42722 -1.42737,0.27696 -1.85459,-0.34354 -0.42721,-0.6205 -0.27967,-1.42788 0.34084,-1.85509 0.6205,-0.42722 1.42897,-0.27807 1.85619,0.34244 z" d="m -848.73422,921.21359 c -1.2858,-1.86754 -3.88474,-2.3456 -5.75227,-1.05981 -1.86753,1.2858 -2.3467,3.88313 -1.0609,5.75067 1.28579,1.86754 3.88312,2.34669 5.75066,1.0609 1.86754,-1.28579 2.34832,-3.88423 1.06251,-5.75176 z m -2.30807,1.5891 c 0.42721,0.6205 0.27806,1.42897 -0.34244,1.85619 -0.62051,0.42722 -1.42737,0.27696 -1.85459,-0.34354 -0.42721,-0.6205 -0.27967,-1.42788 0.34084,-1.85509 0.6205,-0.42722 1.42897,-0.27807 1.85619,0.34244 z"
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;font-feature-settings:normal;font-variation-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;shape-margin:0;inline-size:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#000000;fill-opacity:0.99619669;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.979133;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate;stop-color:#000000;stop-opacity:1" /> style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;font-feature-settings:normal;font-variation-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;shape-margin:0;inline-size:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#000000;fill-opacity:0.99619669;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:0.979133;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate;stop-color:#000000;stop-opacity:1" />
<path
inkscape:connector-curvature="0"
id="path633"
d="m -853.90273,873.87028 c 0,-2.26737 -1.86759,-4.13495 -4.13495,-4.13495 -2.26737,-10e-6 -4.13494,1.86757 -4.13494,4.13495 0,2.26737 1.86757,4.13495 4.13494,4.13494 2.26736,0 4.13495,-1.86757 4.13495,-4.13494 z m -2.80028,0 c 0,0.75334 -0.58132,1.33271 -1.33467,1.33271 -0.75335,10e-6 -1.33468,-0.57937 -1.33468,-1.33271 0,-0.75335 0.58133,-1.33467 1.33468,-1.33467 0.75335,0 1.33467,0.58132 1.33467,1.33467 z"
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;font-feature-settings:normal;font-variation-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;shape-margin:0;inline-size:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#000000;fill-opacity:0.996197;fill-rule:nonzero;stroke:none;stroke-width:2.80001;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate;stop-color:#000000;stop-opacity:1" />
</g> </g>
<path <path
id="path2600" id="path2600"
@ -422,10 +427,10 @@
inkscape:groupmode="layer" inkscape:groupmode="layer"
transform="translate(987.91333,22.888566)"> transform="translate(987.91333,22.888566)">
<path <path
sodipodi:nodetypes="ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
sodipodi:nodetypes="cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
inkscape:connector-curvature="0" inkscape:connector-curvature="0"
transform="translate(-987.91333,-22.888566)" transform="translate(-987.91333,-22.888566)"
d="m 121.99805,38.580078 c 0.12178,0.256497 0.18506,0.536376 0.18554,0.820313 -4e-5,1.060877 -0.85906,1.921836 -1.91992,1.921875 -0.0548,-2.63e-4 -0.10948,-0.0029 -0.16406,-0.0078 v 1.046875 h 17.7207 l 14.00586,14.408203 h 17.20899 v 51.046876 h -19.09571 l -3.94612,3.76342 26.82503,0.0178 V 52.988281 H 153.60547 L 139.59961,38.580078 Z m -38.347659,1.390625 c -0.30152,0.708288 -0.995825,1.167579 -1.765625,1.167969 -0.29621,2.88e-4 -0.589999,-0.06783 -0.855469,-0.199219 l -0.882813,0.638672 24.551296,25.70297 8.70847,0.05289 v 23.050782 h 23.19922 l 10.97265,10.972653 2.67383,-2.671872 -12.08007,-12.082031 h -1.79102 c 0.7689,0.270323 1.28286,0.997453 1.2832,1.8125 -4e-5,1.060871 -0.85904,1.919876 -1.91992,1.919922 -1.06087,-4.6e-5 -1.92182,-0.859051 -1.92187,-1.919922 3.4e-4,-0.815047 0.51624,-1.542177 1.28515,-1.8125 H 117.1875 V 63.552734 l -10.55417,-0.05289 z m -9.548829,0.08398 c -0.36351,0.481846 -0.931576,0.764426 -1.535156,0.763671 -0.26073,-1.17e-4 -0.518302,-0.05322 -0.757812,-0.15625 l -1.271485,0.908203 32.256221,33.449538 h 0.96 l 0.0474,30.925455 h 0.16211 c -0.009,-0.0785 -0.014,-0.1573 -0.0137,-0.23633 4e-5,-1.06086 0.86099,-1.92183 1.92187,-1.92187 0.72298,3.9e-4 1.38363,0.40614 1.71094,1.05079 v -9.833989 c -0.32023,0.663991 -0.99132,1.085598 -1.72851,1.085938 -1.06088,-4.3e-5 -1.92184,-0.861002 -1.92188,-1.921875 4e-5,-1.060872 0.861,-1.919877 1.92188,-1.919922 0.7372,3.28e-4 1.40827,0.421936 1.72851,1.085937 v -9.173828 c -0.22464,0.839749 -0.98424,1.423258 -1.85351,1.423828 -1.06088,-4.3e-5 -1.92184,-0.859048 -1.92188,-1.919922 4e-5,-1.060873 0.861,-1.921829 1.92188,-1.921874 0.86927,5.71e-4 1.62887,0.586033 1.85351,1.425781 v -9.425781 c -0.32024,0.664 -0.99131,1.085608 -1.72851,1.085937 -1.06088,-4.4e-5 -2.10012,-0.667401 -2.10016,-1.728275 3.3e-4,-0.242972 1.18478,-0.67496 1.275,-0.90063 l -0.31495,-1.01937 z m 28.835938,0 c -0.3368,0.616901 -0.98271,1.000117 -1.68555,1 -0.30146,-1.3e-5 -0.60018,-0.07085 -0.86914,-0.207032 l -1.009763,0.753906 13.980283,14.218288 11.57831,-0.01126 V 69.25585 h 10.88281 c -1.06087,-4.2e-5 -1.92183,-0.861002 -1.92187,-1.921875 4.7e-4,-0.877632 0.59687,-1.642393 1.44726,-1.859375 h -6.625 V 52.02734 l -13.46307,0.01126 z m 32.87695,29.201171 h 0.79102 l 10.97265,10.972657 2.67383,-2.673828 -12.08007,-12.080079 h -1.88086 c 0.8496,0.217736 1.4431,0.98231 1.44336,1.859375 -5e-5,1.060873 -0.85907,1.921833 -1.91993,1.921875 z M 112.57227,40.056641 c -0.29966,0.712661 -0.99839,1.175633 -1.77149,1.175781 -0.33522,1.52e-4 -0.66419,-0.0873 -0.95508,-0.253906 l -0.83984,0.658203 8.56836,8.410156 h 16.00195 v 8.642578 h 1.41016 c -0.63243,-0.332109 -1.02978,-0.986839 -1.0293,-1.701172 4e-5,-1.060877 0.86101,-1.921837 1.92188,-1.921875 1.06086,4.4e-5 1.91987,0.861001 1.91992,1.921875 -3.1e-4,0.75903 -0.44694,1.445799 -1.14063,1.753907 l 9.95899,9.960937 2.67383,-2.675781 -11.11914,-11.119141 h -0.81446 v -8.642578 h -17.9375 z m -19.236332,0.01563 c -0.323751,0.656017 -0.99304,1.070658 -1.72461,1.070312 -0.32307,1.63e-4 -0.640508,-0.08104 -0.923828,-0.236328 l -0.929688,0.679688 18.791688,19.935152 10.61847,0.05118 v 18.25 h 15.86133 c -0.59166,-0.343932 -0.95711,-0.977752 -0.95703,-1.66211 4e-5,-1.060874 0.861,-1.919878 1.92187,-1.919922 1.06089,4.4e-5 1.91988,0.859048 1.91992,1.919922 3.8e-4,0.779742 -0.46998,1.4834 -1.1914,1.779297 l 9.89453,9.892578 2.67383,-2.671875 -11.11914,-11.11914 h -15.22266 v -18.25 l -12.47589,-0.05118 z m -32.75586,0.398437 v 7.714844 H 48.0625 v 3.78125 H 64.361328 V 40.470703 Z M 31.763672,57.791016 v 42.201172 h 29.921875 l 8.498047,8.496092 v 13.625 h 3.78125 V 106.92383 L 63.253906,96.210938 H 35.544922 V 61.572266 h 7.714844 v -3.78125 z m 14.296875,7.603515 v 0.759766 c 0.92775,0.15308 1.607492,0.956196 1.607422,1.896484 -3.1e-4,0.404299 -0.128005,0.797608 -0.365235,1.125 h 7.580078 l 54.390628,54.388669 c 0.34198,-0.27594 0.76761,-0.42608 1.20703,-0.42578 0.25942,6.5e-4 0.51561,0.0537 0.75391,0.15625 l 1.55859,-1.55859 -56.343751,-56.341799 z m 0,9.603516 v 0.550781 c 1.03792,0.03067 1.864594,0.879596 1.865234,1.917969 -2.2e-4,0.48785 -0.187764,0.956656 -0.521484,1.3125 h 7.478515 l 44.765626,44.767583 c 0.357162,-0.34198 0.833662,-0.53278 1.328122,-0.53321 0.26574,9e-5 0.52818,0.0552 0.77149,0.16211 l 1.43945,-1.43945 -46.738281,-46.738283 z"
d="m 145.99333,51.019845 5.8328,5.749699 h 17.20899 v 51.046876 h -19.09571 l -3.94612,3.76342 26.82503,0.0178 V 52.988281 h -19.21289 c 0.0679,-0.04844 -5.6921,-5.808436 -7.6121,-6.768436 z M 83.650391,39.970703 c -0.30152,0.708288 -0.995825,1.167579 -1.765625,1.167969 -0.29621,2.88e-4 -0.589999,-0.06783 -0.855469,-0.199219 l -0.882813,0.638672 24.551296,25.70297 8.70847,0.05289 v 23.050782 h 23.19922 l 10.97265,10.972653 2.67383,-2.671872 -12.08007,-12.082031 h -1.79102 c 0.7689,0.270323 1.28286,0.997453 1.2832,1.8125 -4e-5,1.060871 -0.85904,1.919876 -1.91992,1.919922 -1.06087,-4.6e-5 -1.92182,-0.859051 -1.92187,-1.919922 3.4e-4,-0.815047 0.51624,-1.542177 1.28515,-1.8125 H 117.1875 V 63.552734 l -10.55417,-0.05289 z m -9.548829,0.08398 c -0.36351,0.481846 -0.931576,0.764426 -1.535156,0.763671 -0.26073,-1.17e-4 -0.518302,-0.05322 -0.757812,-0.15625 l -1.271485,0.908203 32.256221,33.449538 h 0.96 l 0.0474,30.925455 h 0.16211 c -0.009,-0.0785 -0.014,-0.1573 -0.0137,-0.23633 4e-5,-1.06086 0.86099,-1.92183 1.92187,-1.92187 0.72298,3.9e-4 1.38363,0.40614 1.71094,1.05079 v -9.833989 c -0.32023,0.663991 -0.99132,1.085598 -1.72851,1.085938 -1.06088,-4.3e-5 -1.92184,-0.861002 -1.92188,-1.921875 4e-5,-1.060872 0.861,-1.919877 1.92188,-1.919922 0.7372,3.28e-4 1.40827,0.421936 1.72851,1.085937 v -9.173828 c -0.22464,0.839749 -0.98424,1.423258 -1.85351,1.423828 -1.06088,-4.3e-5 -1.92184,-0.859048 -1.92188,-1.919922 4e-5,-1.060873 0.861,-1.921829 1.92188,-1.921874 0.86927,5.71e-4 1.62887,0.586033 1.85351,1.425781 v -9.425781 c -0.32024,0.664 -0.99131,1.085608 -1.72851,1.085937 -1.06088,-4.4e-5 -2.10012,-0.667401 -2.10016,-1.728275 3.3e-4,-0.242972 1.18478,-0.67496 1.275,-0.90063 l -0.31495,-1.01937 z m 28.835938,0 c -0.3368,0.616901 -0.98271,1.000117 -1.68555,1 -0.30146,-1.3e-5 -0.60018,-0.07085 -0.86914,-0.207032 l -1.009763,0.753906 13.980283,14.218288 11.57831,-0.01126 V 69.25585 h 10.88281 c -1.06087,-4.2e-5 -1.92183,-0.861002 -1.92187,-1.921875 4.7e-4,-0.877632 0.59687,-1.642393 1.44726,-1.859375 h -6.625 V 52.02734 l -13.46307,0.01126 z m 32.87695,29.201171 h 0.79102 l 10.97265,10.972657 2.67383,-2.673828 -12.08007,-12.080079 h -1.88086 c 0.8496,0.217736 1.4431,0.98231 1.44336,1.859375 -5e-5,1.060873 -0.85907,1.921833 -1.91993,1.921875 z M 112.57227,40.056641 c -0.29966,0.712661 -0.99839,1.175633 -1.77149,1.175781 -0.33522,1.52e-4 -0.66419,-0.0873 -0.95508,-0.253906 l -0.83984,0.658203 8.56836,8.410156 h 16.00195 v 8.642578 h 1.41016 c -0.63243,-0.332109 -1.02978,-0.986839 -1.0293,-1.701172 4e-5,-1.060877 0.86101,-1.921837 1.92188,-1.921875 1.06086,4.4e-5 1.91987,0.861001 1.91992,1.921875 -3.1e-4,0.75903 -0.44694,1.445799 -1.14063,1.753907 l 9.95899,9.960937 2.67383,-2.675781 -11.11914,-11.119141 h -0.81446 v -8.642578 h -17.9375 z m -19.236332,0.01563 c -0.323751,0.656017 -0.99304,1.070658 -1.72461,1.070312 -0.32307,1.63e-4 -0.640508,-0.08104 -0.923828,-0.236328 l -0.929688,0.679688 18.791688,19.935152 10.61847,0.05118 v 18.25 h 15.86133 c -0.59166,-0.343932 -0.95711,-0.977752 -0.95703,-1.66211 4e-5,-1.060874 0.861,-1.919878 1.92187,-1.919922 1.06089,4.4e-5 1.91988,0.859048 1.91992,1.919922 3.8e-4,0.779742 -0.46998,1.4834 -1.1914,1.779297 l 9.89453,9.892578 2.67383,-2.671875 -11.11914,-11.11914 h -15.22266 v -18.25 l -12.47589,-0.05118 z m -32.75586,0.398437 v 7.714844 H 48.0625 v 3.78125 H 64.361328 V 40.470703 Z M 31.763672,57.791016 v 42.201172 h 29.921875 l 8.498047,8.496092 v 13.625 h 3.78125 V 106.92383 L 63.253906,96.210938 H 35.544922 V 61.572266 h 7.714844 v -3.78125 z m 14.296875,7.603515 v 0.759766 c 0.92775,0.15308 1.607492,0.956196 1.607422,1.896484 -3.1e-4,0.404299 -0.128005,0.797608 -0.365235,1.125 h 7.580078 l 54.390628,54.388669 c 0.34198,-0.27594 0.76761,-0.42608 1.20703,-0.42578 0.25942,6.5e-4 0.51561,0.0537 0.75391,0.15625 l 1.55859,-1.55859 -56.343751,-56.341799 z m 0,9.603516 v 0.550781 c 1.03792,0.03067 1.864594,0.879596 1.865234,1.917969 -2.2e-4,0.48785 -0.187764,0.956656 -0.521484,1.3125 h 7.478515 l 44.765626,44.767583 c 0.357162,-0.34198 0.833662,-0.53278 1.328122,-0.53321 0.26574,9e-5 0.52818,0.0552 0.77149,0.16211 l 1.43945,-1.43945 -46.738281,-46.738283 z"
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;font-feature-settings:normal;font-variation-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;shape-margin:0;inline-size:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3.77953;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate;stop-color:#000000;stop-opacity:1" style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;font-feature-settings:normal;font-variation-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;shape-margin:0;inline-size:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3.77953;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate;stop-color:#000000;stop-opacity:1"
id="path1566" /> id="path1566" />
<g <g
@ -543,6 +548,12 @@
inkscape:connector-curvature="0" /> inkscape:connector-curvature="0" />
</g> </g>
</g> </g>
<path
style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;font-feature-settings:normal;font-variation-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;shape-margin:0;inline-size:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#000000;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:3.5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate;stop-color:#000000;stop-opacity:1"
d="m -839.62891,94.09375 -13.88671,13.88672 h -36.71094 l -3.91213,-3.91213 -3.04734,-0.20546 -2.68116,-0.57382 8.19141,8.19141 h 39.60937 l 14.91407,-14.912111 z"
id="path1459"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccccccccc" />
</g> </g>
<g <g
inkscape:groupmode="layer" inkscape:groupmode="layer"
@ -1242,18 +1253,18 @@
inkscape:connector-curvature="0" /> inkscape:connector-curvature="0" />
<polygon <polygon
style="opacity:1;fill:#9a916c;stroke-width:0.999481;stop-opacity:1" style="opacity:1;fill:#9a916c;stroke-width:0.999481;stop-opacity:1"
points="3.697,3.269 3.697,15.289 2.049,15.289 2.049,2.049 16.297,2.049 16.297,9.749 22.137,9.749 22.137,2.049 29.837,2.049 29.837,9.749 35.741,9.749 35.741,2.049 43.301,2.049 43.301,15.289 42.081,15.289 42.081,3.269 36.961,3.269 36.961,10.969 28.617,10.969 28.617,3.269 23.357,3.269 23.357,10.969 15.077,10.969 15.077,3.269 9.961,3.269 9.961,15.286 8.741,15.286 8.741,3.269 "
points="16.297,2.049 16.297,9.749 22.137,9.749 22.137,2.049 29.837,2.049 29.837,9.749 35.741,9.749 35.741,2.049 43.301,2.049 43.301,15.289 42.081,15.289 42.081,3.269 36.961,3.269 36.961,10.969 28.617,10.969 28.617,3.269 23.357,3.269 23.357,10.969 15.077,10.969 15.077,3.269 9.961,3.269 9.961,15.286 8.741,15.286 8.741,3.269 3.697,3.269 3.697,15.289 2.049,15.289 2.049,2.049 "
id="polygon3912-4" id="polygon3912-4"
transform="matrix(0,1.3333319,-1.3333319,0,-399.24673,-22.146533)" /> transform="matrix(0,1.3333319,-1.3333319,0,-399.24673,-22.146533)" />
<polygon <polygon
style="opacity:1;fill:#ffffff;stroke-width:0.999481;stop-opacity:1" style="opacity:1;fill:#ffffff;stroke-width:0.999481;stop-opacity:1"
id="polygon3916-0" id="polygon3916-0"
points="37.079,16.967 40.239,16.967 40.239,16.75 36.844,16.75 36.844,20.085 40.239,20.085 40.239,19.868 37.079,19.868 "
points="36.844,20.085 40.239,20.085 40.239,19.868 37.079,19.868 37.079,16.967 40.239,16.967 40.239,16.75 36.844,16.75 "
transform="matrix(0,1.3333319,-1.3333319,0,-399.24673,-22.146533)" /> transform="matrix(0,1.3333319,-1.3333319,0,-399.24673,-22.146533)" />
<polygon <polygon
style="opacity:1;fill:#ffffff;stroke-width:0.999481;stop-opacity:1" style="opacity:1;fill:#ffffff;stroke-width:0.999481;stop-opacity:1"
id="polygon3918-4" id="polygon3918-4"
points="41.036,16.967 44.196,16.967 44.196,19.868 41.036,19.868 41.036,20.085 44.431,20.085 44.431,16.75 41.036,16.75 "
points="41.036,20.085 44.431,20.085 44.431,16.75 41.036,16.75 41.036,16.967 44.196,16.967 44.196,19.868 41.036,19.868 "
transform="matrix(0,1.3333319,-1.3333319,0,-399.24673,-22.146533)" /> transform="matrix(0,1.3333319,-1.3333319,0,-399.24673,-22.146533)" />
<rect <rect
style="opacity:1;stroke-width:1.33264;stop-opacity:1" style="opacity:1;stroke-width:1.33264;stop-opacity:1"
@ -1648,14 +1659,14 @@
<polygon <polygon
style="opacity:1;stroke-width:0.999481;stop-opacity:1" style="opacity:1;stroke-width:0.999481;stop-opacity:1"
id="polygon4046-1" id="polygon4046-1"
points="39.996,20.981 39.275,21.891 39.275,63.96 6.075,63.96 6.075,63.828 5.354,64.739 5.575,64.96 39.775,64.96 40.275,64.46 40.275,21.26 "
points="6.075,63.828 5.354,64.739 5.575,64.96 39.775,64.96 40.275,64.46 40.275,21.26 39.996,20.981 39.275,21.891 39.275,63.96 6.075,63.96 "
fill="#CCCCCC" fill="#CCCCCC"
class="bottom-right" class="bottom-right"
transform="matrix(0,1.3333319,-1.3333319,0,-399.24673,-22.146533)" /> transform="matrix(0,1.3333319,-1.3333319,0,-399.24673,-22.146533)" />
<polygon <polygon
style="opacity:1;stroke-width:0.999481;stop-opacity:1" style="opacity:1;stroke-width:0.999481;stop-opacity:1"
id="polygon4048-5" id="polygon4048-5"
points="6.075,63.828 6.075,21.76 39.275,21.76 39.275,21.891 39.996,20.981 39.775,20.76 5.575,20.76 5.075,21.26 5.075,64.46 5.354,64.739 "
points="39.996,20.981 39.775,20.76 5.575,20.76 5.075,21.26 5.075,64.46 5.354,64.739 6.075,63.828 6.075,21.76 39.275,21.76 39.275,21.891 "
fill="#666666" fill="#666666"
class="top-left" class="top-left"
transform="matrix(0,1.3333319,-1.3333319,0,-399.24673,-22.146533)" /> transform="matrix(0,1.3333319,-1.3333319,0,-399.24673,-22.146533)" />
@ -1795,7 +1806,7 @@
style="opacity:1;fill:#ffffff;stroke-width:1.33264;stop-opacity:1" style="opacity:1;fill:#ffffff;stroke-width:1.33264;stop-opacity:1"
inkscape:connector-curvature="0" inkscape:connector-curvature="0"
class="ism-s" class="ism-s"
d="m -455.608,1.3614417 -0.84134,0.052 c -0.0187,-0.1373332 -0.056,-0.2413331 -0.112,-0.3119997 -0.0907,-0.11599987 -0.22133,-0.17466647 -0.39066,-0.17466647 -0.12667,0 -0.22267,0.0293333 -0.292,0.0893333 -0.068,0.058667 -0.10267,0.1279998 -0.10267,0.2053331 0,0.074667 0.032,0.1399998 0.0973,0.1986664 0.0653,0.058667 0.216,0.1133332 0.45333,0.1666665 0.388,0.085333 0.66533,0.2026665 0.83066,0.3466663 0.16667,0.1453332 0.25067,0.329333 0.25067,0.5533328 0,0.1466665 -0.0427,0.2866663 -0.128,0.4159995 -0.0853,0.1319999 -0.21333,0.2346664 -0.38533,0.3079997 -0.17067,0.076 -0.40667,0.1119999 -0.704,0.1119999 -0.36533,0 -0.644,-0.068 -0.836,-0.2026665 -0.19333,-0.1373332 -0.30667,-0.3533329 -0.344,-0.6493326 l 0.83467,-0.048 c 0.0227,0.1279999 0.0693,0.2213331 0.13866,0.2813331 0.072,0.057333 0.16934,0.086666 0.29467,0.086666 0.10267,0 0.18,-0.022667 0.232,-0.065333 0.052,-0.044 0.0787,-0.097333 0.0787,-0.1599999 0,-0.045333 -0.0213,-0.085333 -0.064,-0.1226665 -0.0413,-0.037333 -0.13999,-0.073333 -0.29733,-0.1053332 -0.38666,-0.082667 -0.664,-0.1679998 -0.83066,-0.2519997 -0.168,-0.085333 -0.28934,-0.1919998 -0.36534,-0.317333 -0.076,-0.1266666 -0.11466,-0.2666664 -0.11466,-0.4226663 0,-0.1853331 0.0507,-0.35466474 0.152,-0.50799791 0.10133,-0.15599983 0.244,-0.27333304 0.42533,-0.35333295 0.18267,-0.0813333 0.41333,-0.1213332 0.69067,-0.1213332 0.48666,0 0.82399,0.0933332 1.01199,0.28133303 0.188,0.18799979 0.292,0.42799803 0.31734,0.71733133 z"
d="m -455.608,1.3614417 -0.84134,0.052 c -0.0187,-0.1373332 -0.056,-0.2413331 -0.112,-0.3119997 -0.0907,-0.11599987 -0.22133,-0.17466647 -0.39066,-0.17466647 -0.12667,0 -0.22267,0.0293333 -0.292,0.0893333 -0.068,0.058667 -0.10267,0.1279998 -0.10267,0.2053331 0,0.074667 0.032,0.1399998 0.0973,0.1986664 0.0653,0.058667 0.216,0.1133332 0.45333,0.1666665 0.388,0.085333 0.66533,0.2026665 0.83066,0.3466663 0.16667,0.1453332 0.25067,0.329333 0.25067,0.5533328 0,0.1466665 -0.0427,0.2866663 -0.128,0.4159995 -0.0853,0.1319999 -0.21333,0.2346664 -0.38533,0.3079997 -0.17067,0.076 -0.40667,0.1119999 -0.704,0.1119999 -0.36533,0 -0.644,-0.068 -0.836,-0.2026665 -0.19333,-0.1373332 -0.30667,-0.3533329 -0.344,-0.6493326 l 0.83467,-0.048 c 0.0227,0.1279999 0.0693,0.2213331 0.13866,0.2813331 0.072,0.057333 0.16934,0.086666 0.29467,0.086666 0.10267,0 0.18,-0.022667 0.232,-0.065333 0.052,-0.044 0.0787,-0.097333 0.0787,-0.1599999 0,-0.045333 -0.0213,-0.085333 -0.064,-0.1226665 -0.0413,-0.037333 -0.13999,-0.073333 -0.29733,-0.1053332 -0.38666,-0.082667 -0.664,-0.1679998 -0.83066,-0.2519997 -0.168,-0.085333 -0.28934,-0.1919998 -0.36534,-0.317333 -0.076,-0.1266666 -0.11466,-0.2666664 -0.11466,-0.4226663 0,-0.1853331 0.0507,-0.35466462 0.152,-0.50799779 0.10133,-0.15599983 0.244,-0.27333304 0.42533,-0.35333295 0.18267,-0.0813333 0.41333,-0.1213332 0.69067,-0.1213332 0.48666,0 0.82399,0.0933332 1.01199,0.28133303 0.188,0.18799979 0.292,0.42799791 0.31734,0.71733121 z"
id="path4102-1" /> id="path4102-1" />
<path <path
style="opacity:1;fill:#ffffff;stroke-width:1.33264;stop-opacity:1" style="opacity:1;fill:#ffffff;stroke-width:1.33264;stop-opacity:1"
@ -2228,6 +2239,8 @@
</g> </g>
<g <g
gorn="0.0.0.0.3.2.0.0.0.0.5" gorn="0.0.0.0.3.2.0.0.0.0.5"
@ -2254,6 +2267,8 @@
</g> </g>
</g> </g>
<rect <rect
@ -2301,6 +2316,8 @@
</g> </g>
</g> </g>
</g> </g>
@ -2713,6 +2730,8 @@
<text <text
gorn="0.0.0.0.3.3.0.0.0.0.0.31.0.0.1" gorn="0.0.0.0.3.3.0.0.0.0.0.31.0.0.1"
fill="#ffffff" fill="#ffffff"
@ -2728,6 +2747,8 @@
</g> </g>
</g> </g>
</g> </g>
@ -2960,13 +2981,13 @@
stroke-width="0.0562573" /> stroke-width="0.0562573" />
<polygon <polygon
gorn="0.0.0.0.3.13.0.0.0.0.3" gorn="0.0.0.0.3.13.0.0.0.0.3"
points="1.65002,0.46728 1.66932,0.49392 1.66932,0.955656 1.65002,0.982152 1.65002,0.473904 "
points="1.65002,0.473904 1.65002,0.46728 1.66932,0.49392 1.66932,0.955656 1.65002,0.982152 "
fill="#262626" fill="#262626"
id="polygon131471-7-2-9" id="polygon131471-7-2-9"
stroke-width="0.0562573" /> stroke-width="0.0562573" />
<polygon <polygon
gorn="0.0.0.0.3.13.0.0.0.0.4" gorn="0.0.0.0.3.13.0.0.0.0.4"
points="1.89403,0.46728 1.88338,0.49392 1.88338,0.955656 1.89403,0.98208 1.89403,0.473904 "
points="1.89403,0.473904 1.89403,0.46728 1.88338,0.49392 1.88338,0.955656 1.89403,0.98208 "
id="polygon131473-9-9-5" id="polygon131473-9-9-5"
stroke-width="0.0562573" /> stroke-width="0.0562573" />
<rect <rect
@ -4136,6 +4157,8 @@
</g> </g>
<g <g
gorn="0.0.0.0.3.28" gorn="0.0.0.0.3.28"
@ -4162,6 +4185,8 @@
</g> </g>
<g <g
gorn="0.0.0.0.3.29" gorn="0.0.0.0.3.29"
@ -4188,6 +4213,8 @@
</g> </g>
<g <g
gorn="0.0.0.0.3.30" gorn="0.0.0.0.3.30"
@ -4214,6 +4241,8 @@
</g> </g>
<g <g
transform="rotate(90)" transform="rotate(90)"
@ -4250,6 +4279,8 @@
</g> </g>
</g> </g>
</g> </g>
@ -4279,6 +4310,8 @@
</g> </g>
<g <g
gorn="0.0.0.0.3.33" gorn="0.0.0.0.3.33"
@ -4305,6 +4338,8 @@
</g> </g>
<circle <circle
gorn="0.0.0.0.3.34" gorn="0.0.0.0.3.34"
@ -4419,6 +4454,8 @@
</g> </g>
<g <g
gorn="0.0.0.0.3.43" gorn="0.0.0.0.3.43"
@ -4445,6 +4482,8 @@
</g> </g>
<g <g
gorn="0.0.0.0.3.44" gorn="0.0.0.0.3.44"
@ -4471,6 +4510,8 @@
</g> </g>
<g <g
gorn="0.0.0.0.3.45" gorn="0.0.0.0.3.45"
@ -4497,6 +4538,8 @@
</g> </g>
<g <g
gorn="0.0.0.0.3.46" gorn="0.0.0.0.3.46"
@ -4523,6 +4566,8 @@
</g> </g>
<g <g
gorn="0.0.0.0.3.47" gorn="0.0.0.0.3.47"
@ -4549,6 +4594,8 @@
</g> </g>
<g <g
gorn="0.0.0.0.3.48" gorn="0.0.0.0.3.48"
@ -4575,6 +4622,8 @@
</g> </g>
<g <g
gorn="0.0.0.0.3.49" gorn="0.0.0.0.3.49"
@ -4601,6 +4650,8 @@
</g> </g>
</g> </g>
</g> </g>

Before

Width:  |  Height:  |  Size: 293 KiB

After

Width:  |  Height:  |  Size: 296 KiB

27
V3-WeMos/ProcessingTestReceive/ProcessingTestReceive.pde

@ -1,27 +0,0 @@
import oscP5.*;
import netP5.*;
OscP5 oscP5;
void setup() {
size(400,400);
frameRate(25);
oscP5 = new OscP5(this,7000);
}
void draw() {
background(0);
}
void oscEvent(OscMessage theOscMessage) {
print("### Pattern: "+theOscMessage.addrPattern());
print(" TypeTag:"+theOscMessage.typetag());
if(theOscMessage.checkTypetag("i")){
print(" Value: "+theOscMessage.get(0).intValue());
}
if(theOscMessage.checkTypetag("s")){
print(" Value: "+theOscMessage.get(0));
}
println();
}

0
V3-WeMos/ESP8266sendMessage/ESP8266sendMessage.ino → V3-WeMos/Tests/ESP8266sendMessage/ESP8266sendMessage.ino

105
V3-WeMos/Tests/ProcessingTestReceive/ProcessingTestReceive.pde

@ -0,0 +1,105 @@
import oscP5.*;
import netP5.*;
int sliderRX = 0;
int sliderRY = 0;
int sliderLX = 0;
int sliderLY = 0;
int fingersR[] = {0, 0, 0, 0};
int fingersL[] = {0, 0, 0, 0};
OscP5 oscP5;
void setup() {
size(400, 250);
frameRate(25);
oscP5 = new OscP5(this, 7000);
}
void draw() {
background(0);
fill(255);
stroke(255);
strokeWeight(4);
line(100, 25, 100, 175);
line(25, 100, 175, 100);
circle(100, map(sliderLY, -16000, 16000, 25, 175), 20);
circle(map(sliderLX, -16000, 16000, 175, 25), 100, 20);
line(300, 25, 300, 175);
line(225, 100, 375, 100);
circle(300, map(sliderRY, -16000, 16000, 25, 175), 20);
circle(map(sliderRX, -16000, 16000, 375, 225), 100, 20);
fill(fingersL[0] == 1 ? 255 : 0);
circle(40, 210, 20);
fill(fingersL[1] == 1 ? 255 : 0);
circle(80, 210, 20);
fill(fingersL[2] == 1 ? 255 : 0);
circle(120, 210, 20);
fill(fingersL[3] == 1 ? 255 : 0);
circle(160, 210, 20);
fill(fingersR[0] == 1 ? 255 : 0);
circle(240, 210, 20);
fill(fingersR[1] == 1 ? 255 : 0);
circle(280, 210, 20);
fill(fingersR[2] == 1 ? 255 : 0);
circle(320, 210, 20);
fill(fingersR[3] == 1 ? 255 : 0);
circle(360, 210, 20);
}
void oscEvent(OscMessage theOscMessage) {
if(theOscMessage.checkTypetag("i")){
switch(theOscMessage.addrPattern()) {
case "/movedulation/sliderRX":
sliderRX = theOscMessage.get(0).intValue();
break;
case "/movedulation/sliderRY":
sliderRY = theOscMessage.get(0).intValue();
break;
case "/movedulation/sliderLX":
sliderLX = theOscMessage.get(0).intValue();
break;
case "/movedulation/sliderLY":
sliderLY = theOscMessage.get(0).intValue();
break;
case "/movedulation/toggleR1":
fingersR[0] = theOscMessage.get(0).intValue();
break;
case "/movedulation/toggleR2":
fingersR[1] = theOscMessage.get(0).intValue();
break;
case "/movedulation/toggleR3":
fingersR[2] = theOscMessage.get(0).intValue();
break;
case "/movedulation/toggleR4":
fingersR[3] = theOscMessage.get(0).intValue();
break;
case "/movedulation/toggleL1":
fingersL[0] = theOscMessage.get(0).intValue();
break;
case "/movedulation/toggleL2":
fingersL[1] = theOscMessage.get(0).intValue();
break;
case "/movedulation/toggleL3":
fingersL[2] = theOscMessage.get(0).intValue();
break;
case "/movedulation/toggleL4":
fingersL[3] = theOscMessage.get(0).intValue();
break;
}
}
//if(theOscMessage.checkTypetag("i")){
//println(" Value: "+theOscMessage);
//}
}
Loading…
Cancel
Save