Commits

tuck...@gmail.com  committed d6fb9e9 Draft

doc évo

  • Participants
  • Parent commits 0afcf63

Comments (0)

Files changed (1)

File source/tutorials/blinking_led.rst

         syntaxe ::
             # import les différents modules et fonctions nécessaires
             >> import sys
+            >> from pin import PE7
             >> from gpio import pin_mode, digital_write, OUTPUT, INPUT, HIGH, LOW
-            # configure le port E7 en sortie
-            >> gpio.pin_mode("E", 7, gpio.OUTPUT)
+            # configure le port PE7 en sortie
+            >> gpio.pin_mode(PE7, gpio.OUTPUT)
             >> while True:
                    
                    sys.wait(800)
-                   digital_write("E", 7, HIGH)
+                   digital_write(PE7, HIGH)
                    sys.wait(800)
-                   digital_write("E", 7, LOW)
+                   digital_write(PE7, LOW)