Ben Bass  committed c87d589

fix led_flash example

  • Participants
  • Parent commits ab1d2c6
  • Branches default

Comments (0)

Files changed (1)

File pylibftdi/examples/

 import time
-from pylibftdi import BitBangDriver
+from pylibftdi import BitBangDevice
 def flash_forever(rate):
     "toggle bit zero at rate Hz"
     # put an LED with 1Kohm or similar series resistor
     # on D0 pin
-    with BitBangDriver() as bb:
+    with BitBangDevice() as bb:
         while True:
             time.sleep(1.0 / (2 * rate))
             bb.port ^= 1