Modifications

Sauter à la navigation Sauter à la recherche
33 octets ajoutés ,  16 septembre 2018 à 21:44
Ligne 87 : Ligne 87 :     
==== Remplir ====
 
==== Remplir ====
−
Remplir un écran ou un rectangle de point blanc (allume tous les Pixels).
+
Remplir un écran ou un rectangle de point blanc (allume tous les Pixels) ou points noir (éteint les pixels).
−
 
   
<syntaxhighlight lang="python">  
 
<syntaxhighlight lang="python">  
−
# Rempli l'écran en blanc
+
lcd.fill(1) # Rempli l'écran en blanc
−
display.fill(1)
+
lcd.show() # Afficher!
−
display.show() # Afficher!
      
# Remplis un rectangle en noir
 
# Remplis un rectangle en noir
 
# fill_rect( x, y, w, h, c )  
 
# fill_rect( x, y, w, h, c )  
−
display.fill_rect( 10,10, 20, 4, 0 )
+
lcd.fill_rect( 10,10, 20, 4, 0 )
−
display.show()
+
lcd.show() # Afficher!
 
</syntaxhighlight>
 
</syntaxhighlight>
  
32 920

modifications

Menu de navigation