diff --git a/IndividualColor/IndividualColor.pde b/IndividualColor/IndividualColor.pde index a98e7fc..edfd71f 100644 --- a/IndividualColor/IndividualColor.pde +++ b/IndividualColor/IndividualColor.pde @@ -23,11 +23,6 @@ void draw() { opc.setPixel(i+8*6, color(100,100,100)); opc.setPixel(i+8*7, color(200,200,200)); } - - - //opc.setPixel(5, color(255,0,0)); - //opc.setPixel(25, color(0,255,0)); - //opc.setPixel(40, color(0,0,255)); opc.writePixels(); diff --git a/TextLID/TextLID.pde b/TextLID/TextLID.pde new file mode 100644 index 0000000..8a4a760 --- /dev/null +++ b/TextLID/TextLID.pde @@ -0,0 +1,38 @@ +OPC opc; + color c = color(0,0,255); + +void setup() { + size(500, 500, P3D); + opc = new OPC(this, "127.0.0.1", 7890); + opc.ledGrid8x8(0, width/2, height/2, height / 16.0, 0, false); + +} + +void draw() { + background(0); + + for (int i = 0; i < 6; i++) { + opc.setPixel(8+8*i, color(255,0,0)); + } + opc.setPixel(8+8*5+1, color(255,0,0)); + + for (int i = 0; i < 6; i++) { + opc.setPixel(11+8*i, color(0,255,0)); + } + + for (int i = 0; i < 6; i++) { + opc.setPixel(13+8*i, color(0,0,255)); + } + + opc.setPixel(14, color(0,0,255)); + opc.setPixel(54, color(0,0,255)); + + for (int i = 0; i < 4; i++) { + opc.setPixel(23+8*i, color(0,0,255)); + } + + opc.writePixels(); + +} + + \ No newline at end of file