progamme experience

Dependencies:   mbed RGB_matrix_Panel_modif

Revision:
2:7e46a870ebd1
Parent:
1:159b56e19e44
Child:
3:dfa6925e27d0
--- a/main.cpp	Fri May 24 20:12:03 2019 +0000
+++ b/main.cpp	Fri May 24 20:45:48 2019 +0000
@@ -56,12 +56,29 @@
                     wait_ms(500);
                 }
                 BT_E.printf("D");
+                matrix.fillScreen(matrix.Color333(0, 0, 0));
                 while(1) {
-                    for (int j =0; j<=7; j++) { // Clignotement panneau
-                        for (int k=0; k<=7; k++) {
-                            for (int l =0; l<=7; l++) {
-                                matrix.fillScreen(matrix.Color333(j, k, l));
-                                wait_ms(500);
+                    // draw some text!
+                    /*matrix.setCursor(1, 0);   // start at top left, with one pixel of spacing
+                    matrix.setTextSize(1);    // size 1 == 8 pixels high
+
+                    // printff each letter with a rainbow color
+                    matrix.setTextColor(matrix.Color333(7,0,0));
+                    matrix.putc('1');
+                    matrix.setTextColor(matrix.Color333(7,4,0));
+                    matrix.putc('6');
+                    matrix.setTextColor(matrix.Color333(7,7,0));
+                    matrix.putc('x');
+                    matrix.setTextColor(matrix.Color333(4,7,0));
+                    matrix.putc('3');
+                    matrix.setTextColor(matrix.Color333(0,7,0));
+                    matrix.putc('2');*/
+
+                    for (int j =0; j<=16; j++) { // Clignotement panneau
+                        for (int k=0; k<=16; k++) {
+                            for (int l =0; l<=16; l++) {
+                                matrix.fillScreen(matrix.Color444(j, k, l));
+                                wait_ms(100);
                             }
                         }
                     }