Hi All,
I'm not very much in to programming, so if there is somebody that can help me will be great!
I need a sample code for controlling TCA6424A 24bit I/O expander.
I need to control 22 P-chanel mosfet transistors, so that mean that all ports on the TCA6424A should be set as outputs and when they are LOW the transistors are ON.
Also I'm using the standard IC address (the address pin is connected to LOW/GND)
Here is the datasheet: http://www.ti.com/lit/ds/symlink/tca6424a.pdf
I imported this lib: i2cdevlib/Arduino/TCA6424A at master · jrowberg/i2cdevlib · GitHub
But I don't have an idea how to write the code, if there is somebody that can write a sample code that turn on and off at least one I/O pin on each port for a 500ms. I will be very grateful.
The Arduino I'm using is Promini328p
P.S. Please put comments explaining what is happening and what is what.
Thank You!
Hi,
If you have installed the Library for the TCA6424A 24bit I/O expander, if you look in the Examples section of the IDE, its in the Files column, you may find some examples for the library that should help.
Can you tell us your electronics, programming, Arduino, hardware experience?
Thanks.. Tom.. 
Hi
I just checked and it doesn't look like any example code was supplied.
If you need code written for you, then use the Gigs and Collaboration section of the Forum.
Tom... 
Hi Tom,
Yes I need a example code and will post in the Gigs and Collaboration. Thank you!
Arduino rocks! 
Another issue I have is when import the lib. "#include <TCA6424A.h>" stays black. Any tough ?
And I can't compile. Giving me
"C:\Users\Adam\Documents\Arduino\libraries\TCA6424A/TCA6424A.h:1068:18: error: expected unqualified-id before numeric constant"
Best,
Georgi
Hi,
Have you put the files in a TCA6424A named folder?
The folder name must be exactly the same as the two files in it.
We need to see your code.
Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.
Tom... 