Added text example spelling LID

This commit is contained in:
Frederik Vanggaard 2016-04-06 20:45:46 +02:00
parent 6664e1c9d6
commit 1705ab24ee
2 changed files with 38 additions and 5 deletions

View File

@ -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();

38
TextLID/TextLID.pde Normal file
View 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();
}