Update display.js
fix matrix change bug
@@ -228,10 +228,12 @@ Blockly.Arduino.display_Matrix_DisplayChar = function() {
if(matrixType=="HT16K33")
{
code+=' '+ matrixName +'.drawPixel(j, i,1);\n';
+ code+='else\n'+ matrixName +'.drawPixel(j, i,0);\n';
}
else
{
code+=' '+ matrixName +'.drawPixel(j, 7-i,1);\n';
+ code+='else\n'+ matrixName +'.drawPixel(j, 7-i,0);\n';
}
code+=' LEDArray[i] = LEDArray[i]>>1;\n';
code+=' } \n'
