Detect if SPI or I2C is correct #237
Unanswered
Potemkinkuliss
asked this question in
Q&A
Replies: 1 comment
-
In case someone is interested:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using SPI and I2C devices in my project and provide a scan that first checks if SPI devices are present and afterwards tries to search I2C. Since the number of supported devices starts to increase, scanning all possible SPI and I2C devices takes a considerable amount of time. So I wonder, if there is a way to quickly check if I2C or SPI is configured.
I am using a FT232H so my first idea was to set D1 as Input and D2 as output and check if D1 reads high when D2 is set high or since I am always using clk-stretch do the same with D7 and D0.
Can you think of a better way?
Beta Was this translation helpful? Give feedback.
All reactions