Support Forum

Share your projects and post your questions

Register   or   Sign In
The Forum

Setting Output pin to open drain with the c library

2208 Views - Created 18/04/2017


Posted by:

vhauffmr Avatar


Being new to IO Pi I might be missing something.I would like to use the IO Plus as an Open Drain output. Looking at the ABE_IoPi.h I did not find a function that would specify wether the output was to be open drain or not.How would I set this?Thank you for your help, as I said, still a newbi. Yours, Martin von Hauff


Posted by:

andrew Avatar

United Kingdom

andrew Twitter  andrew Website  

Hello Martin

I do not think it is possible to see the output pins as open-drain on the IO Pi Plus. According to the datasheet for the MCP23017 which is used on the IO Pi Plus the only pins that can be set as open drain are the interrupt pins. At the moment the C library does not include a function for setting the mode of the interrupt pins but I can add that in if you need it.

Sign in to post your reply

Note: documents in Portable Document Format (PDF) require Adobe Acrobat Reader 5.0 or higher to view, download Adobe Acrobat Reader or other PDF reading software for your computer or mobile device.