Modifications

Sauter à la navigation Sauter à la recherche
Ligne 36 : Ligne 36 :  
{{ADFImage|Rasp-Hack-Afficheur-LCD-Python-a01.jpg}}
 
{{ADFImage|Rasp-Hack-Afficheur-LCD-Python-a01.jpg}}
   −
{{traduction}}
+
Pour montrer l'utilisation de la bibliothèque, nous vous proposons de parcourir l'exemple {{fname|char_lcd.py}} ci-dessous.  
 
  −
To demonstrate the usage of the library I'll walk through the source code of the char_lcd.py example below.  
      
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
Ligne 47 : Ligne 45 :  
</syntaxhighlight>
 
</syntaxhighlight>
    +
{{traduction}}
 
The first part of the script are commands to import modules that will be used. In particular the Adafruit_CharLCD module is imported under the name LCD. Later in the script you can see how classes from the char LCD module are used to interact with the LCD.  
 
The first part of the script are commands to import modules that will be used. In particular the Adafruit_CharLCD module is imported under the name LCD. Later in the script you can see how classes from the char LCD module are used to interact with the LCD.  
  
29 917

modifications

Menu de navigation