Created
November 12, 2012 16:33
-
-
Save edy555/4060347 to your computer and use it in GitHub Desktop.
blink led using FT232RL bitbang mode with pylibftdi and python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# pip install pylibftdi | |
# refer /Library/Python/2.6/site-packages/pylibftdi | |
from pylibftdi import BitBangDevice | |
import time | |
with BitBangDevice(direction = 0xff) as bb: | |
while True: | |
time.sleep(0.5) | |
bb.port |= 0xff | |
time.sleep(0.5) | |
bb.port &= 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment