Ligne 135 : |
Ligne 135 : |
| #!/usr/bin/python | | #!/usr/bin/python |
| | | |
− | # Simple RGBMatrix example, using only Clear(), Fill() and SetPixel(). | + | # Un exemple simple RGBMatrix, utilisant uniquement Clear(), Fill() et SetPixel(). |
− | # These functions have an immediate effect on the display; no special | + | # Ces fonctions ont un effet immédiat sur la matrice; pas besoin |
− | # refresh operation needed. | + | # d'opérations spéciales pour le rafraîchissement. |
− | # Requires rgbmatrix.so present in the same directory. | + | # Nécessite que rgbmatrix.so soit présent dans le même répertoire. |
| | | |
| import time | | import time |
| from rgbmatrix import Adafruit_RGBmatrix | | from rgbmatrix import Adafruit_RGBmatrix |
| | | |
− | # Rows and chain length are both required parameters: | + | # Le nombre de ligne (Rows) et de dalles dans la chaine (chain length) |
| + | # sont deux paramètres obligatoire : |
| matrix = Adafruit_RGBmatrix(32, 1) | | matrix = Adafruit_RGBmatrix(32, 1) |
| | | |
− | # Flash screen red, green, blue (packed color values) | + | # Fait Flasher l'écran en rouge, vert, bleu (red, green, blue). |
| + | # Utilise la codification couleur RGB 888 en notation hexadécimale |
| matrix.Fill(0xFF0000) | | matrix.Fill(0xFF0000) |
| time.sleep(1.0) | | time.sleep(1.0) |
Ligne 154 : |
Ligne 156 : |
| time.sleep(1.0) | | time.sleep(1.0) |
| | | |
− | # Show RGB test pattern (separate R, G, B color values) | + | # Affiche un test en RGB (valeurs différente de couleur R, G, B) |
| for b in range(16): | | for b in range(16): |
| for g in range(8): | | for g in range(8): |