Added text example spelling LID
This commit is contained in:
parent
6664e1c9d6
commit
1705ab24ee
@ -24,11 +24,6 @@ void draw() {
|
||||
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();
|
||||
|
||||
}
|
||||
|
38
TextLID/TextLID.pde
Normal file
38
TextLID/TextLID.pde
Normal file
@ -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();
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user