@@ -0,0 +1,1914 @@
+import time%0Afrom wiringx86 import GPIOEdison as GPIO%0Agpio = GPIO(debug=False)%0Apin1 = 3%0Apin2 = 4%0Apin3 = 5%0Apin4 = 6%0Aindex = 0%0A%0Aprint 'Setting up pin %25d' %25 pin1%0Agpio.pinMode(pin1, gpio.OUTPUT)%0Aprint 'Setting up pin %25d' %25 pin2%0Agpio.pinMode(pin2, gpio.OUTPUT)%0Aprint 'Setting up pin %25d' %25 pin3%0Agpio.pinMode(pin3, gpio.OUTPUT)%0Aprint 'Setting up pin %25d' %25 pin4%0Agpio.pinMode(pin4, gpio.OUTPUT)%0A%0Aprint 'Go up now...'%0Atry:%0A  while(True):%0A    gpio.digitalWrite(pin4, gpio.LOW)     %0A    gpio.digitalWrite(pin2, gpio.HIGH)    %0A    time.sleep(0.01)                      %0A                                              %0A    gpio.digitalWrite(pin1, gpio.LOW)     %0A    gpio.digitalWrite(pin3, gpio.HIGH)    %0A    time.sleep(0.01)                      %0A                                              %0A    gpio.digitalWrite(pin2, gpio.LOW)     %0A    gpio.digitalWrite(pin4, gpio.HIGH)    %0A    time.sleep(0.01)                      %0A                                              %0A    gpio.digitalWrite(pin3, gpio.LOW)     %0A    gpio.digitalWrite(pin1, gpio.HIGH)    %0A    time.sleep(0.01)                      %0A                                              %0A    index=index+1%0A    %0A# When you get tired of seeing the led blinking kill the loop with Ctrl-C.%0Aexcept KeyboardInterrupt:                                                 %0A  print '%5CnCleaning up...'                                              %0A  print 'total step %25d' %25 index                                           %0A  gpio.digitalWrite(pin1, gpio.LOW)                                     %0A  gpio.digitalWrite(pin2, gpio.LOW)                                     %0A  gpio.digitalWrite(pin3, gpio.LOW)                                     %0A  gpio.digitalWrite(pin4, gpio.LOW)                                     %0A                                                                          %0A  # Do a general cleanup. Calling this function is not mandatory.       %0A  gpio.cleanup()     %0A

Create countFlagSteps.py