FT232H JTAG interface with OpenOCD on Mac problems

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
Tony_Carbon
 
Posts: 25
Joined: Mon Jan 13, 2025 12:01 pm

Re: FT232H JTAG interface with OpenOCD on Mac problems

Post by Tony_Carbon »

mikeysklar wrote: Fri Jan 17, 2025 1:36 pm The issue with the pip3 install is did you use /usr/bin/pip3 or was it the pip3 from the brew directory (which will not work).
I checked what has been installed with brew, and it does not list pip3, so I assume not using a brew version.
Python has been installed by brew tho, but the tree shows no pip3 dependency installed.

[email protected]
├── mpdecimal
├── openssl@3
│ └── ca-certificates
├── sqlite
│ └── readline
├── xz
└── libffi

I have removed the python install from brew now also, and rebooted to see if that made any difference,
which it did not.

How do I install pip3 anyway if not from brew.
Although the pip3 I have working appears to be part of a non brew pythron install.

User avatar
mikeysklar
 
Posts: 18070
Joined: Mon Aug 01, 2016 8:10 pm

Re: FT232H JTAG interface with OpenOCD on Mac problems

Post by mikeysklar »

The path names are key here.

Where is your python3 coming from? What versions of python do you have installed in /usr/bin?

pip3 can be installed in a variety of ways and brew is not required. I believe it ships by default with the current macOS. One way to install it manually is:

/usr/bin/python3 -m ensurepip

User avatar
Tony_Carbon
 
Posts: 25
Joined: Mon Jan 13, 2025 12:01 pm

Re: FT232H JTAG interface with OpenOCD on Mac problems

Post by Tony_Carbon »

mikeysklar wrote: Fri Jan 17, 2025 5:25 pm The path names are key here.

Where is your python3 coming from? What versions of python do you have installed in /usr/bin?

pip3 can be installed in a variety of ways and brew is not required. I believe it ships by default with the current macOS. One way to install it manually is:

/usr/bin/python3 -m ensurepip
Thanks again for the guided help.

Python3 [v 3.7 ] appears to be installed in Library/Frameworks/Python.framework/Versions/3.7

in /usr/bin there is Python2.7

User avatar
Tony_Carbon
 
Posts: 25
Joined: Mon Jan 13, 2025 12:01 pm

Re: FT232H JTAG interface with OpenOCD on Mac problems

Post by Tony_Carbon »

mikeysklar wrote: Fri Jan 17, 2025 5:25 pm The path names are key here.

Where is your python3 coming from? What versions of python do you have installed in /usr/bin?

pip3 can be installed in a variety of ways and brew is not required. I believe it ships by default with the current macOS. One way to install it manually is:

/usr/bin/python3 -m ensurepip
Hi

That command doesnt work on my mac, as Python is not installeed in /usr/bin

User avatar
mikeysklar
 
Posts: 18070
Joined: Mon Aug 01, 2016 8:10 pm

Re: FT232H JTAG interface with OpenOCD on Mac problems

Post by mikeysklar »

Your old macOS release might not have a localized python3 binary.

Take a look at the current Homebrew-python to setup pip docs.

These are the docs Adafruit has been using.

User avatar
Tony_Carbon
 
Posts: 25
Joined: Mon Jan 13, 2025 12:01 pm

Re: FT232H JTAG interface with OpenOCD on Mac problems

Post by Tony_Carbon »

mikeysklar wrote: Mon Jan 20, 2025 1:11 pm Your old macOS release might not have a localized python3 binary.

Take a look at the current Homebrew-python to setup pip docs.

These are the docs Adafruit has been using.
Thanks Mikey.

But my understanding from your previous posts was to avoid using Brew to install Python3 and pip stuff, as it caused problems with the FT232H . . .

User avatar
mikeysklar
 
Posts: 18070
Joined: Mon Aug 01, 2016 8:10 pm

Re: FT232H JTAG interface with OpenOCD on Mac problems

Post by mikeysklar »

Give the current docs a chance and see where things break down. Ideally use a current OS as being the four year old Monterey is not helping.

The long story is that homebrew and python file management are not working out. Using pipx, pyenv or localized installs of pip are work arounds.

Another option would be getting OpenOCD going on a Pi for now.

I use have had good experiences using the segger jlinks and openOCD with my macOS boxes.

I'll try pyenv on my macOS Sequoia box and see if I can make a local homedir install work with the latest python3 release.

User avatar
mikeysklar
 
Posts: 18070
Joined: Mon Aug 01, 2016 8:10 pm

Re: FT232H JTAG interface with OpenOCD on Mac problems

Post by mikeysklar »

Tony,

Please give this a try. I had good results creating a virtual envirnment called "tonys_python" and usign the brew version of python3 on my system.

Code: Select all

sklarm@grazie ~ % whence python3
/opt/homebrew/bin/python3

sklarm@grazie ~ % python3 --version
Python 3.13.0

python3 -m venv tonys_python

sklarm@grazie ~ % source tonys_python/bin/activate
(tonys_python) sklarm@grazie ~ %

(tonys_python) sklarm@grazie ~ % pip3 install pyftdi

(tonys_python) sklarm@grazie ~ % pip3 install adafruit-blinka

(tonys_python) sklarm@grazie ~ % export BLINKA_FT232H=1

(tonys_python) sklarm@grazie ~ % python3
Python 3.13.0 (main, Oct  7 2024, 05:02:14) [Clang 15.0.0 (clang-1500.1.0.2.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import board
>>> dir(board)
['C0', 'C1', 'C2', 'C3', 'C4', 'C5', 'C6', 'C7', 'D4', 'D5', 'D6', 'D7', 'I2C', 'MISO', 'MOSI', 'SCK', 'SCL', 'SCLK', 'SDA', 'SPI', '__blinka__', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__repo__', '__spec__', '__version__', 'ap_board', 'board_id', 'detector', 'pin', 'sys']
>>>

User avatar
Tony_Carbon
 
Posts: 25
Joined: Mon Jan 13, 2025 12:01 pm

Re: FT232H JTAG interface with OpenOCD on Mac problems

Post by Tony_Carbon »

mikeysklar wrote: Tue Jan 21, 2025 4:02 pm Tony,

Please give this a try. I had good results creating a virtual envirnment called "tonys_python" and usign the brew version of python3 on my system.

Code: Select all

sklarm@grazie ~ % whence python3
/opt/homebrew/bin/python3

sklarm@grazie ~ % python3 --version
Python 3.13.0

python3 -m venv tonys_python

sklarm@grazie ~ % source tonys_python/bin/activate
(tonys_python) sklarm@grazie ~ %

(tonys_python) sklarm@grazie ~ % pip3 install pyftdi

(tonys_python) sklarm@grazie ~ % pip3 install adafruit-blinka

(tonys_python) sklarm@grazie ~ % export BLINKA_FT232H=1

(tonys_python) sklarm@grazie ~ % python3
Python 3.13.0 (main, Oct  7 2024, 05:02:14) [Clang 15.0.0 (clang-1500.1.0.2.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import board
>>> dir(board)
['C0', 'C1', 'C2', 'C3', 'C4', 'C5', 'C6', 'C7', 'D4', 'D5', 'D6', 'D7', 'I2C', 'MISO', 'MOSI', 'SCK', 'SCL', 'SCLK', 'SDA', 'SPI', '__blinka__', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__repo__', '__spec__', '__version__', 'ap_board', 'board_id', 'detector', 'pin', 'sys']
>>>
Hi Mikey

Thanks for this.

But a few issues I have found.

'Whence' presumably is the same as 'which' on the mac
which gives me this: "/Library/Frameworks/Python.framework/Versions/3.13/bin/python3"

Even after "brew install python3"

So creating the env path doesnt seem to make any difference to the pip3 install, as I still end up with an error
on the "board install" command.

Code: Select all

Jakes-MacBook-Pro:~ jake$ python3 -m venv tonys_python
Jakes-MacBook-Pro:~ jake$ source tonys_python/bin/activate
(tonys_python) Jakes-MacBook-Pro:~ jake$ pip3 install pyftdi
Requirement already satisfied: pyftdi in ./tonys_python/lib/python3.13/site-packages (0.56.0)
Requirement already satisfied: pyusb!=1.2.0,>=1.0.0 in ./tonys_python/lib/python3.13/site-packages (from pyftdi) (1.3.1)
Requirement already satisfied: pyserial>=3.0 in ./tonys_python/lib/python3.13/site-packages (from pyftdi) (3.5)
(tonys_python) Jakes-MacBook-Pro:~ jake$ pip3 install adafruit-blinka
Requirement already satisfied: adafruit-blinka in ./tonys_python/lib/python3.13/site-packages (8.51.0)
Requirement already satisfied: Adafruit-PlatformDetect>=3.70.1 in ./tonys_python/lib/python3.13/site-packages (from adafruit-blinka) (3.77.0)
Requirement already satisfied: Adafruit-PureIO>=1.1.7 in ./tonys_python/lib/python3.13/site-packages (from adafruit-blinka) (1.1.11)
Requirement already satisfied: binho-host-adapter>=0.1.6 in ./tonys_python/lib/python3.13/site-packages (from adafruit-blinka) (0.1.6)
Requirement already satisfied: pyftdi>=0.40.0 in ./tonys_python/lib/python3.13/site-packages (from adafruit-blinka) (0.56.0)
Requirement already satisfied: adafruit-circuitpython-typing in ./tonys_python/lib/python3.13/site-packages (from adafruit-blinka) (1.11.2)
Requirement already satisfied: pyserial in ./tonys_python/lib/python3.13/site-packages (from binho-host-adapter>=0.1.6->adafruit-blinka) (3.5)
Requirement already satisfied: pyusb!=1.2.0,>=1.0.0 in ./tonys_python/lib/python3.13/site-packages (from pyftdi>=0.40.0->adafruit-blinka) (1.3.1)
Requirement already satisfied: adafruit-circuitpython-busdevice in ./tonys_python/lib/python3.13/site-packages (from adafruit-circuitpython-typing->adafruit-blinka) (5.2.11)
Requirement already satisfied: adafruit-circuitpython-requests in ./tonys_python/lib/python3.13/site-packages (from adafruit-circuitpython-typing->adafruit-blinka) (4.1.9)
Requirement already satisfied: typing_extensions~=4.0 in ./tonys_python/lib/python3.13/site-packages (from adafruit-circuitpython-typing->adafruit-blinka) (4.12.2)
Requirement already satisfied: Adafruit-Circuitpython-ConnectionManager in ./tonys_python/lib/python3.13/site-packages (from adafruit-circuitpython-requests->adafruit-circuitpython-typing->adafruit-blinka) (3.1.3)
(tonys_python) Jakes-MacBook-Pro:~ jake$ export BLINKA_FT232H=1
(tonys_python) Jakes-MacBook-Pro:~ jake$ python3
Python 3.13.1 (v3.13.1:06714517797, Dec  3 2024, 14:00:22) [Clang 15.0.0 (clang-1500.3.9.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import board
Traceback (most recent call last):
  File "<python-input-0>", line 1, in <module>
    import board
  File "/Users/jake/tonys_python/lib/python3.13/site-packages/board.py", line 21, in <module>
    from adafruit_blinka.agnostic import board_id, detector
  File "/Users/jake/tonys_python/lib/python3.13/site-packages/adafruit_blinka/agnostic/__init__.py", line 21, in <module>
    chip_id = detector.chip.id
              ^^^^^^^^^^^^^^^^
  File "/Users/jake/tonys_python/lib/python3.13/site-packages/adafruit_platformdetect/chip.py", line 67, in id
    count = len(UsbTools.find_all([(0x0403, 0x6014)]))
                ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
  File "/Users/jake/tonys_python/lib/python3.13/site-packages/pyftdi/usbtools.py", line 93, in find_all
    devs.update(UsbTools._find_devices(vid, pid, nocache))
                ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
  File "/Users/jake/tonys_python/lib/python3.13/site-packages/pyftdi/usbtools.py", line 582, in _find_devices
    backend = cls._load_backend()
  File "/Users/jake/tonys_python/lib/python3.13/site-packages/pyftdi/usbtools.py", line 649, in _load_backend
    raise ValueError('No backend available')
ValueError: No backend available

User avatar
Tony_Carbon
 
Posts: 25
Joined: Mon Jan 13, 2025 12:01 pm

Re: FT232H JTAG interface with OpenOCD on Mac problems

Post by Tony_Carbon »

mikeysklar wrote: Tue Jan 21, 2025 11:16 am Give the current docs a chance and see where things break down. Ideally use a current OS as being the four year old Monterey is not helping.

The long story is that homebrew and python file management are not working out. Using pipx, pyenv or localized installs of pip are work arounds.

Another option would be getting OpenOCD going on a Pi for now.

I use have had good experiences using the segger jlinks and openOCD with my macOS boxes.

I'll try pyenv on my macOS Sequoia box and see if I can make a local homedir install work with the latest python3 release.
Thanks for the info, but I bought the Adafruit FT232H as it was advertised as a mac compatible JTAG adapter, hence
this post on the forum.

Should I swap this for the Segger unit you link to above ?
If so how does the store return policy work for this.

Best regards

User avatar
mikeysklar
 
Posts: 18070
Joined: Mon Aug 01, 2016 8:10 pm

Re: FT232H JTAG interface with OpenOCD on Mac problems

Post by mikeysklar »

First of all good job running the above command and including output. That actually looks pretty close. You are running the correct commmands and now with the current release of python3 (v3.13.1).

Now my commands work because I have libusb installed. When I remove it I see the same as you.

Code: Select all

(tonys_python) sklarm@grazie ~ % brew uninstall --ignore-dependencies libusb
Uninstalling /opt/homebrew/Cellar/libusb/1.0.27... (23 files, 620.6KB)
(tonys_python) sklarm@grazie ~ % export BLINKA_FT232H=1
(tonys_python) sklarm@grazie ~ % python3
Python 3.13.0 (main, Oct  7 2024, 05:02:14) [Clang 15.0.0 (clang-1500.1.0.2.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import board
Traceback (most recent call last):
  File "<python-input-0>", line 1, in <module>
    import board
  File "/Users/sklarm/tonys_python/lib/python3.13/site-packages/board.py", line 21, in <module>
    from adafruit_blinka.agnostic import board_id, detector
  File "/Users/sklarm/tonys_python/lib/python3.13/site-packages/adafruit_blinka/agnostic/__init__.py", line 21, in <module>
    chip_id = detector.chip.id
              ^^^^^^^^^^^^^^^^
  File "/Users/sklarm/tonys_python/lib/python3.13/site-packages/adafruit_platformdetect/chip.py", line 67, in id
    count = len(UsbTools.find_all([(0x0403, 0x6014)]))
                ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
  File "/Users/sklarm/tonys_python/lib/python3.13/site-packages/pyftdi/usbtools.py", line 93, in find_all
    devs.update(UsbTools._find_devices(vid, pid, nocache))
                ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
  File "/Users/sklarm/tonys_python/lib/python3.13/site-packages/pyftdi/usbtools.py", line 582, in _find_devices
    backend = cls._load_backend()
  File "/Users/sklarm/tonys_python/lib/python3.13/site-packages/pyftdi/usbtools.py", line 649, in _load_backend
    raise ValueError('No backend available')
ValueError: No backend available
When I install libusb again things are good.

Code: Select all

(tonys_python) sklarm@grazie ~ % brew install libusb
==> Auto-updating Homebrew...
Adjust how often this is run with HOMEBREW_AUTO_UPDATE_SECS or disable with
HOMEBREW_NO_AUTO_UPDATE. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> Downloading https://ghcr.io/v2/homebrew/portable-ruby/portable-ruby/blobs/sha256:d9faa506c014dedc0b034a68103ba75c9a58242f4d6c67b6ca0f649c39602bcf
############################################################################################################################################################################### 100.0%
==> Pouring portable-ruby-3.3.7.arm64_big_sur.bottle.tar.gz
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
alive2                    binocle                   cargo-hack                fish-lsp                  libcotp                   pnpm@9                    tfocus
asciigen                  bold                      cargo-update              guile-fibers              [email protected]        prism-cli                 tinysparql
azure-storage-blobs-cpp   c2patool                  diary                     hevi                      [email protected]    rmtrash                   xtermcontrol
azure-storage-common-cpp  cargo-cache               dpic                      html2markdown             perl-dbd-mysql            shepherd                  zigup
beanquery                 cargo-cyclonedx           fastbuild                 json2hcl                  pkgx                      superhtml
==> New Casks
amiberry                  display-pilot             font-liter                helpwire-operator         spectrolite               tdr-molotok               termora
cpu-info                  font-42dot-sans           font-pixel-code           lyric-fever               stratoshark@dev           tdr-prism                 windowkeys

You have 83 outdated formulae and 2 outdated casks installed.

==> Downloading https://ghcr.io/v2/homebrew/core/libusb/manifests/1.0.27
############################################################################################################################################################################### 100.0%
==> Fetching libusb
==> Downloading https://ghcr.io/v2/homebrew/core/libusb/blobs/sha256:872182eebb566f32d577fa82b126260c383c6a8f8d02e9fc232eadda9184060b
############################################################################################################################################################################### 100.0%
==> Pouring libusb--1.0.27.arm64_sequoia.bottle.tar.gz
🍺  /opt/homebrew/Cellar/libusb/1.0.27: 23 files, 619.7KB
==> Running `brew cleanup libusb`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
(tonys_python) sklarm@grazie ~ % python3
Python 3.13.0 (main, Oct  7 2024, 05:02:14) [Clang 15.0.0 (clang-1500.1.0.2.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import board
>>> dir(board)
['C0', 'C1', 'C2', 'C3', 'C4', 'C5', 'C6', 'C7', 'D4', 'D5', 'D6', 'D7', 'I2C', 'MISO', 'MOSI', 'SCK', 'SCL', 'SCLK', 'SDA', 'SPI', '__blinka__', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__repo__', '__spec__', '__version__', 'ap_board', 'board_id', 'detector', 'pin', 'sys']
>>>
Please let me know if libusb resolves this for you. If not, we will work something else out hardware wise.

User avatar
Tony_Carbon
 
Posts: 25
Joined: Mon Jan 13, 2025 12:01 pm

Re: FT232H JTAG interface with OpenOCD on Mac problems

Post by Tony_Carbon »

Hi Mikey

Thanks for persevering with me !

I'm pretty sure I have libusb installed:

Code: Select all

brew list libusb
/usr/local/Cellar/libusb/1.0.27/include/libusb-1.0/libusb.h
/usr/local/Cellar/libusb/1.0.27/lib/libusb-1.0.0.dylib
/usr/local/Cellar/libusb/1.0.27/lib/pkgconfig/libusb-1.0.pc
/usr/local/Cellar/libusb/1.0.27/lib/ (2 other files)
/usr/local/Cellar/libusb/1.0.27/sbom.spdx.json
/usr/local/Cellar/libusb/1.0.27/share/libusb/ (9 files)
Jakes-MacBook-Pro:~ jake$ 

User avatar
mikeysklar
 
Posts: 18070
Joined: Mon Aug 01, 2016 8:10 pm

Re: FT232H JTAG interface with OpenOCD on Mac problems

Post by mikeysklar »

Your setup still has an issue that you are using the current version of Python3 (v3.13.3), but it is not coming from brew. It looks like a manually installed version.

Your brew install looks like it is in:

Code: Select all

/usr/local/Cellar
Your localized install of tonys_python is off your homedir. Which is now necessary and you have that correct.

The problem resides in that your starting with this version of python3 which has no connection to brew. It will not find libusb.

Code: Select all

/Library/Frameworks/Python.framework/Versions/3.13/bin/python3
Try using the brew based python3 like mine uses, then create the tonys_python virtual environment. You will need to remove the existing tonys_python/ dir that is there and start a new one with the python3 in your /usr/local based brew dir.

User avatar
Tony_Carbon
 
Posts: 25
Joined: Mon Jan 13, 2025 12:01 pm

Re: FT232H JTAG interface with OpenOCD on Mac problems

Post by Tony_Carbon »

mikeysklar wrote: Wed Jan 22, 2025 3:30 pm Your setup still has an issue that you are using the current version of Python3 (v3.13.3), but it is not coming from brew. It looks like a manually installed version.

Your brew install looks like it is in:

Code: Select all

/usr/local/Cellar
Your localized install of tonys_python is off your homedir. Which is now necessary and you have that correct.

The problem resides in that your starting with this version of python3 which has no connection to brew. It will not find libusb.

Code: Select all

/Library/Frameworks/Python.framework/Versions/3.13/bin/python3
Try using the brew based python3 like mine uses, then create the tonys_python virtual environment. You will need to remove the existing tonys_python/ dir that is there and start a new one with the python3 in your /usr/local based brew dir.
thanks.

I managed to remove/uninstall Python3 and Frameworks related links.

I have installed and linked Python3 using brew, and now have a working Python3 from /usr/local/bin !

But when I issue the command

Code: Select all

pip3 install pyftdi
I get the following errors:

Code: Select all

pip3 install pyftdi
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try brew install
    xyz, where xyz is the package you are trying to
    install.
    
    If you wish to install a Python library that isn't in Homebrew,
    use a virtual environment:
    
    python3 -m venv path/to/venv
    source path/to/venv/bin/activate
    python3 -m pip install xyz
    
    If you wish to install a Python application that isn't in Homebrew,
    it may be easiest to use 'pipx install xyz', which will manage a
    virtual environment for you. You can install pipx with
    
    brew install pipx
    
    You may restore the old behavior of pip by passing
    the '--break-system-packages' flag to pip, or by adding
    'break-system-packages = true' to your pip.conf file. The latter
    will permanently disable this error.
    
    If you disable this error, we STRONGLY recommend that you additionally
    pass the '--user' flag to pip, or set 'user = true' in your pip.conf
    file. Failure to do this can result in a broken Homebrew installation.
    
    Read more about this behavior here: <https://peps.python.org/pep-0668/>

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

User avatar
mikeysklar
 
Posts: 18070
Joined: Mon Aug 01, 2016 8:10 pm

Re: FT232H JTAG interface with OpenOCD on Mac problems

Post by mikeysklar »

Good progress getting python3 into /usr/local/bin.

Now you missed the steps involving venv which are critical for package management. Once you understand this bit you are golden.

* trash your old tonys_python folder first

one time creation of your venv trash your old tonys_python folder first

Code: Select all

/usr/local/bin/python3 -m venv tonys_python

activate your new virtual environment (need to do this on every login)

Code: Select all

sklarm@grazie ~ % source tonys_python/bin/activate
(tonys_python) sklarm@grazie ~ %
install your packages this will all go into tonys_python folder of your homedir.

Code: Select all

(tonys_python) sklarm@grazie ~ % pip3 install pyftdi

(tonys_python) sklarm@grazie ~ % pip3 install adafruit-blinka

(tonys_python) sklarm@grazie ~ % export BLINKA_FT232H=1

(tonys_python) sklarm@grazie ~ % python3
Python 3.13.0 (main, Oct  7 2024, 05:02:14) [Clang 15.0.0 (clang-1500.1.0.2.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import board
>>> dir(board)
['C0', 'C1', 'C2', 'C3', 'C4', 'C5', 'C6', 'C7', 'D4', 'D5', 'D6', 'D7', 'I2C', 'MISO', 'MOSI', 'SCK', 'SCL', 'SCLK', 'SDA', 'SPI', '__blinka__', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__repo__', '__spec__', '__version__', 'ap_board', 'board_id', 'detector', 'pin', 'sys']
>>>


Post Reply
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”