Modifications

Sauter à la navigation Sauter à la recherche
Ligne 21 : Ligne 21 :     
== Avec un LCD standard ==
 
== Avec un LCD standard ==
Once the library is installed you can find a few examples of its usage in the '''examples''' subdirectory. If you're using a monochrome backlight LCD (i.e. single color, like a white on blue LCD) the '''char_lcd.py''' script will demonstrate the basic usage.
+
UNe fois la bibliothèque installée, vous trouverez quelques exemples de son utilisation dans le sous répertoire '''examples'''. Si vous utilisez un LCD à rétro-éclairage monochrome (ex: une seule couleur, comme pour {{pl|176|notre LCD blanc / bleu}) alors le script '''char_lcd.py''' permet de démontrer l'utilisation de base.
   −
If you're using a Raspberry Pi and have wired it according to this guide, you can immediately run the example. However if you're using a BeagleBone Black or changed the wiring, first open '''char_lcd.py''' in a text editor (like nano) and uncomment/comment the lines towards the top that set the LCD pins.
+
Vous pouvez utiliser directement cet exemple si vous utilisé un Pi avec le raccordement recommandées dans ce guide. Si vous avez utilisez un BeagleBone Black ou utilisé un autre raccordement alors ouvrez le fichier '''char_lcd.py''' dans votre éditeur de texte préféré (comme nano) puis commentez/décommentez les lignes nécessaire en début de fichier (les lignes correspondant à l'initialisation des broches).
    
'''Note: If you're using a BeagleBone Black wired for hardware PWM of the backlight, skip down the page to the section on using hardware PWM.'''
 
'''Note: If you're using a BeagleBone Black wired for hardware PWM of the backlight, skip down the page to the section on using hardware PWM.'''
29 917

modifications

Menu de navigation