Skip to content
Snippets Groups Projects
Commit 61468333 authored by fxk8y's avatar fxk8y :spider:
Browse files

Dev += 1

parent 24766731
No related branches found
No related tags found
No related merge requests found
#!/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()
eeprom.connect(ftdi)
print('EEPROM: {}'.format(eeprom.properties))
# sanity check: device should have been configured for CBUS GPIOs
# self.assertEqual(eeprom.cbus_mask & 0b1001, 0b1001)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment