Less debugging in simulation
This commit is contained in:
parent
e2592cc774
commit
1ef3cf4f53
@ -169,7 +169,7 @@ public class ESP8266Ws2812 extends TwoArgFunction {
|
|||||||
ESP8266Ws2812.layout.fillLEDs(r, g, b);
|
ESP8266Ws2812.layout.fillLEDs(r, g, b);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
System.out.println("[WS2812] buffer fill with " + r + "," + g + "," + b);
|
//System.out.println("[WS2812] buffer fill with " + r + "," + g + "," + b);
|
||||||
return LuaValue.valueOf(true);
|
return LuaValue.valueOf(true);
|
||||||
} else {
|
} else {
|
||||||
System.err.println("[WS2812] buffer not initialized ("+varargs.narg() +"args) , length "+ length + ", raw:" + color.toString());
|
System.err.println("[WS2812] buffer not initialized ("+varargs.narg() +"args) , length "+ length + ", raw:" + color.toString());
|
||||||
@ -211,9 +211,9 @@ public class ESP8266Ws2812 extends TwoArgFunction {
|
|||||||
});
|
});
|
||||||
return LuaValue.valueOf(true);
|
return LuaValue.valueOf(true);
|
||||||
} else {
|
} else {
|
||||||
for(int i=0; i <= varargs.narg(); i++) {
|
// for(int i=0; i <= varargs.narg(); i++) {
|
||||||
System.err.println("[WS2812] write ["+(i) + "] (" + varargs.arg(i).typename() + ") " + varargs.arg(i).toString() );
|
// System.err.println("[WS2812] write ["+(i) + "] (" + varargs.arg(i).typename() + ") " + varargs.arg(i).toString() );
|
||||||
}
|
// }
|
||||||
|
|
||||||
System.err.println("[WS2812] set with " + varargs.narg() + " arguments at index="+ index + " and "+ length + " charactes not matching");
|
System.err.println("[WS2812] set with " + varargs.narg() + " arguments at index="+ index + " and "+ length + " charactes not matching");
|
||||||
return LuaValue.NIL;
|
return LuaValue.NIL;
|
||||||
@ -244,7 +244,7 @@ public class ESP8266Ws2812 extends TwoArgFunction {
|
|||||||
array[1] = (char) (color.getGreen() );
|
array[1] = (char) (color.getGreen() );
|
||||||
array[2] = (char) (color.getBlue() );
|
array[2] = (char) (color.getBlue() );
|
||||||
|
|
||||||
System.err.println("[WS2812] reading " + offset + ":" + ((int)array[0]) +"," + ((int) array[1]) + "," + ((int) array[2]) + " from " + color);
|
// System.err.println("[WS2812] reading " + offset + ":" + ((int)array[0]) +"," + ((int) array[1]) + "," + ((int) array[2]) + " from " + color);
|
||||||
return LuaString.valueOf(array);
|
return LuaString.valueOf(array);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user