ESP32 interface with I/O Expander
Posted: Fri Dec 13, 2019 10:56 am
I tried to interface TCA6424ARGJR I/O Expander with ESP32 via, I2C protocol
I am setting the Configuration Registers first as output for port pin P00 in I/O expander and then writing
into output port register as value 0(set to low level) that have connected LED to the P00 pin.
I am facing an issue with during power on the ESP32 module led was On for less than 1 sec and turned
off which resultant is as flickering if LED for short moment.
But this flicker of Led does not occur when the ESP32 module is reset using reset button.
Please provide any solution for the flickering during power on.
My logic is as below:-
#define TCA6424A_P00 0
setPinDirection(TCA6424A_P00, false); //set the direction as output for TCA6424A_P00 port
writePin(TCA6424A_P00, false); //set the level as low
I am setting the Configuration Registers first as output for port pin P00 in I/O expander and then writing
into output port register as value 0(set to low level) that have connected LED to the P00 pin.
I am facing an issue with during power on the ESP32 module led was On for less than 1 sec and turned
off which resultant is as flickering if LED for short moment.
But this flicker of Led does not occur when the ESP32 module is reset using reset button.
Please provide any solution for the flickering during power on.
My logic is as below:-
#define TCA6424A_P00 0
setPinDirection(TCA6424A_P00, false); //set the direction as output for TCA6424A_P00 port
writePin(TCA6424A_P00, false); //set the level as low