Modifications

Sauter à la navigation Sauter à la recherche
Ligne 138 : Ligne 138 :  
* the red pixel is at coordinates (7, 4)
 
* the red pixel is at coordinates (7, 4)
    +
To replicate the above diagram you would enter a program like this:
 +
 +
<nowiki>from astro_pi import AstroPi
 +
 +
ap = AstroPi()
 +
 +
ap.set_pixel(0, 2, [0, 0, 255])
 +
ap.set_pixel(7, 4, [255, 0, 0])</nowiki>
    
{{RASP-SENSE-HAT-ASTRO-PI-TRAILER}}
 
{{RASP-SENSE-HAT-ASTRO-PI-TRAILER}}
29 918

modifications

Menu de navigation