]> Repositories - Adafruit_Blinka-hackapet.git/commit
Add support for ftdi URLs in the BLINKA_FT232H variable.
authorTom Rothamel <tom@rothamel.us>
Thu, 25 Mar 2021 04:46:48 +0000 (00:46 -0400)
committerTom Rothamel <tom@rothamel.us>
Thu, 25 Mar 2021 04:46:48 +0000 (00:46 -0400)
commit1448b9acef7460b49a779173837967c7f507388e
tree9bb51dd560e989b73258dad3cb9f21de3d70521b
parent17b9bef0ecb286581464f4ec02a685dc98022b21
Add support for ftdi URLs in the BLINKA_FT232H variable.

This allows the an FTDI URL, like ftdi://ftdi:232h:W00001/1
to be given in the BLINKA_FT232H. If it's used, then that
board is the one that is opened. If the value of the variable
is not an FTDI url, then the default is used.

This makes it possible for multiple processes on the same
computer to talk to different FTDI boards. While talking
to multiple boards from a single process might be possible,
that's outside of the scope of this commit.
src/adafruit_blinka/microcontroller/ft232h/i2c.py
src/adafruit_blinka/microcontroller/ft232h/pin.py
src/adafruit_blinka/microcontroller/ft232h/spi.py
src/adafruit_blinka/microcontroller/ft232h/url.py [new file with mode: 0644]