Outils pour utilisateurs

Outils du site


raspberry_pi:controle_led_rgb

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
raspberry_pi:controle_led_rgb [22/02/2015 05:15]
sky99
raspberry_pi:controle_led_rgb [22/02/2015 05:16] (Version actuelle)
sky99
Ligne 63: Ligne 63:
     mcp.config(g1,​ mcp.OUTPUT)     mcp.config(g1,​ mcp.OUTPUT)
     mcp.config(r1,​ mcp.OUTPUT)     mcp.config(r1,​ mcp.OUTPUT)
- 
- # Set pin 3 to input with the pullup resistor enabled 
-    #​mcp.pullup(3,​ 1) 
-    # Read pin 3 and display the results 
-    #print "%d: %x" % (3, mcp.input(3) >> 3) 
- 
  
     while (True):     while (True):
raspberry_pi/controle_led_rgb.1424578509.txt.gz · Dernière modification: 22/02/2015 05:15 par sky99