Ligne 246 : |
Ligne 246 : |
| | | |
| == Plus d'exemples == | | == Plus d'exemples == |
− | Vous pouvez consulter les autres exemples du sous-répertoire {{fname|example}}, just make sure to edit each one with '''nano animate.py''' for example, and find the line that says: | + | Vous pouvez consulter les autres exemples du sous-répertoire {{fname|examples}}. |
| + | |
| + | Assurez-vous d'éditer chacun des exemples (avec '''nano animate.py''' par exemple) et trouvez la ligne mentionnant: |
| | | |
| <syntaxhighlight lang="python"> | | <syntaxhighlight lang="python"> |
Ligne 253 : |
Ligne 255 : |
| </syntaxhighlight> | | </syntaxhighlight> |
| | | |
− | and change it to:
| + | et la changer en : |
| | | |
| <syntaxhighlight lang="python"> | | <syntaxhighlight lang="python"> |
| # Raspberry Pi pin configuration: | | # Raspberry Pi pin configuration: |
− | RST = None # PiOLED does not require reset pin | + | RST = None # PiOLED n'a pas besoin de la broche Reset |
| </syntaxhighlight> | | </syntaxhighlight> |
| | | |
− | and make sure that the configuration section where you choose which type of display, looks like this
| + | puis assurez vous que la configuration section utilise la déclaration correspond à votre afficheur PiOled... comme ceci: |
| | | |
| <syntaxhighlight lang="python"> | | <syntaxhighlight lang="python"> |
Ligne 276 : |
Ligne 278 : |
| </syntaxhighlight> | | </syntaxhighlight> |
| | | |
− | That is, we'll be using I2C 128x32 display!
| + | Voila, le script d'exemple utilise maintenant un afficheur I2C 128x32 pixels (sans broche Reset)! |
| | | |
| == Speeding Up the Display == | | == Speeding Up the Display == |