Fix RGB to actually be RGB

Also aligned text to avoid overwriting.
This commit is contained in:
Marc MERLIN 2018-12-25 01:43:59 -08:00
parent 0564945c74
commit c8eefd7ca7

View file

@ -77,7 +77,7 @@ void setup() {
dma_display.print(str[w]);
}
dma_display.setCursor(2, 4); // next line
dma_display.println();
for (w=9; w<18; w++) {
dma_display.setTextColor(Wheel(w));
dma_display.print(str[w]);
@ -89,7 +89,7 @@ void setup() {
dma_display.println("LED MATRIX!");
// print each letter with a rainbow color
dma_display.setTextColor(dma_display.color444(15,0,0));
dma_display.setTextColor(dma_display.color444(0,8,15));
dma_display.print('3');
dma_display.setTextColor(dma_display.color444(15,4,0));
dma_display.print('2');
@ -97,16 +97,18 @@ void setup() {
dma_display.print('x');
dma_display.setTextColor(dma_display.color444(8,15,0));
dma_display.print('6');
dma_display.setTextColor(dma_display.color444(0,15,0));
dma_display.setTextColor(dma_display.color444(8,0,15));
dma_display.print('4');
// Jump a half character
dma_display.setCursor(34, 24);
dma_display.setTextColor(dma_display.color444(0,15,15));
dma_display.print("*");
dma_display.setTextColor(dma_display.color444(0,8,15));
dma_display.setTextColor(dma_display.color444(15,0,0));
dma_display.print('R');
dma_display.setTextColor(dma_display.color444(0,0,15));
dma_display.setTextColor(dma_display.color444(0,15,0));
dma_display.print('G');
dma_display.setTextColor(dma_display.color444(8,0,15));
dma_display.setTextColor(dma_display.color444(0,0,15));
dma_display.print("B");
dma_display.setTextColor(dma_display.color444(15,0,8));
dma_display.println("*");