Commit 61468333 authored by fxk8y's avatar fxk8y 🕷
Browse files

Dev += 1

parent 24766731
#!/usr/bin/env nix-shell
#!nix-shell -i python -p "python3.withPackages (p: with p; [pyftdi])" --pure
#!nix-shell -i python -p less -p "python3.withPackages (p: with p; [pyftdi])" --pure
from time import sleep
from pyftdi.eeprom import FtdiEeprom
from pyftdi.ftdi import Ftdi, FtdiError
# import pdb; pdb.set_trace()
eeprom = FtdiEeprom()
print('Hello, FTDI!')
......@@ -21,6 +23,8 @@ ftdi.open_from_url('ftdi:///1')
eeprom = FtdiEeprom()
print('EEPROM: {}'.format(
# sanity check: device should have been configured for CBUS GPIOs
# self.assertEqual(eeprom.cbus_mask & 0b1001, 0b1001)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment