Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i set AC0~AC7 as input #33

Open
audi0615 opened this issue Jun 17, 2024 · 2 comments
Open

How can i set AC0~AC7 as input #33

audi0615 opened this issue Jun 17, 2024 · 2 comments

Comments

@audi0615
Copy link

Hi.
I'm testing FT232H with this library.
in GPIO mode, PinHigh, PinLow works fine on AC pins. but i have a problem to set these pins as INPUT.
I could not find any functions to change the pin mode to INPUT. SetDirection() is for bit-bang mode.
According to the datasheet, all these pins are in tri-state mode by default. does this mean i can use these pins as INPUT without changing mode?
Could you please help me how to set AC pins as INPUT?

@l29ah
Copy link
Owner

l29ah commented Jun 17, 2024

Why don't you use libftdi for that? libmpsse is specifically about utilizing MPSSE.

@audi0615
Copy link
Author

I would check the libftdi thanks. But libmpsse works fine only except for unable to change pin mode to input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants