Modifications

Sauter à la navigation Sauter à la recherche
Ligne 44 : Ligne 44 :  
import Adafruit_CharLCD as LCD
 
import Adafruit_CharLCD as LCD
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
La première partie du script contient des commandes de chargement des modules que nous allons utiliser.
 +
 +
Plus particulièrement, le module {{fname|Adafruit_CharLCD}} est importé sous le nom LCD. Vous verrez plus tard, dans le script, comment les classes du module LCD sont utilisées pour interagit avec l'afficheur.
    
{{traduction}}
 
{{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.
      
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
29 917

modifications

Menu de navigation