progamme experience

Dependencies:   mbed RGB_matrix_Panel_modif

Revision:
4:758ce5c1b2fc
Parent:
3:dfa6925e27d0
Child:
5:e429087355fc
diff -r dfa6925e27d0 -r 758ce5c1b2fc main.cpp
--- a/main.cpp	Sat May 25 16:39:46 2019 +0000
+++ b/main.cpp	Mon May 27 08:23:57 2019 +0000
@@ -58,36 +58,30 @@
                     matrix.fillScreen(matrix.Color333(7, 0, 0));
                     wait_ms(500);
                 }
-                
+
                 depart = 1; // départ filaire
                 BT_E.printf("D"); // départ bluetooth
-                
+
                 matrix.fillScreen(matrix.Color333(0, 0, 0));
                 while(1) {
-                    // draw some text!
-                    /*matrix.setCursor(1, 0);   // start at top left, with one pixel of spacing
-                    matrix.setTextSize(1);    // size 1 == 8 pixels high
+                    matrix.drawPixel(rand()%32, rand()%32, matrix.Color333(0, 7,0));
+                    matrix.drawPixel(rand()%32, rand()%32, matrix.Color333(0, 0, 0));
+                    wait_ms(10);
+                    matrix.drawPixel(rand()%32, rand()%32, matrix.Color333(7, 0,0));
+                    matrix.drawPixel(rand()%32, rand()%32, matrix.Color333(0, 0, 0));
+                    wait_ms(10);
+                    matrix.drawPixel(rand()%32, rand()%32, matrix.Color333(0, 0,7));
+                    matrix.drawPixel(rand()%32, rand()%32, matrix.Color333(0, 0, 0));
+                    wait_ms(10);
 
-                    // 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);
+                    /* 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);
+                                }
                             }
-                        }
-                    }
+                        }*/
                 }
             }
         }