Modifications

Sauter à la navigation Sauter à la recherche
161 octets ajoutés ,  9 février 2018 à 10:05
Ligne 101 : Ligne 101 :     
== Utilisation de la bibliothèque ==
 
== Utilisation de la bibliothèque ==
Vous trouverez des scripts python d'exemple dans le sous répertoire {{fname|examples}} qui montre comment utiliser la bibliothèque. Adafruit <a href="../../../../ssd1306-oled-displays-with-raspberry-pi-and-beaglebone-black/">These are covered in more detail in our OLED guide here, so do check them out.</a>
+
Vous trouverez des scripts python d'exemple dans le sous répertoire {{fname|examples}} qui montre comment utiliser la bibliothèque. Adafruit [https://learn.adafruit.com/ssd1306-oled-displays-with-raspberry-pi-and-beaglebone-black/ Ce guide OLED d'Adafruit (''anglais'') couvre plus de détails concernant l'utilisation des afficheurs], n'hésitez pas à le consulter.
   −
To help you get started, I'll walk through the '''stats.py''' code below, that way you can use this file as the basis of a future project.
+
Pour débuter plus facilement, nous allons réviser le code de {{fname|stats.py}}. De sorte, vous pourrez utiliser ce script comme base de départ pour vos propres projets.
    
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
Ligne 118 : Ligne 118 :  
</syntaxhighlight>
 
</syntaxhighlight>
   −
First a few modules are imported, including the '''Adafruit_SSD1306''' module which contains the OLED display driver classes. You can also see some of the '''P'''ython '''I'''maging '''L'''ibrary modules like '''Image''', '''ImageDraw''', and''' ImageFont''' being imported. Those are, as you can imagine, are for drawing images, shapes and text/fonts!
+
Nous commençons par importer quelques modules, y compris le module '''Adafruit_SSD1306''' qui contient le pilote de l'afficheur OLED.  
 +
 
 +
Vous pouvez également noter l'importation de quelques éléments de la bibliothèque'' '''P'''ython '''I'''maging '''L'''ibrary'' comme '''Image''', '''ImageDraw''' et  '''ImageFont'''. Comme vous pouvez Those are, as you can imagine, are for drawing images, shapes and text/fonts!
    
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
29 922

modifications

Menu de navigation