i have to use multiple port expander for my project.
i have see who there are a Lib (PortExpander) who i can use but.....
my problem is who i have to use 2 different port expander now in the declaration of lib
i see the possibility to inialize multiple adressed PE
Code: Select all
Expander_Init(0); // Initialize Port Expander addr 0
Expander_Init(1); // Initialize Port Expander addr 1
Code: Select all
// Port Expander module connections
sbit SPExpanderRST at LATF0_bit;
sbit SPExpanderCS at LATF1_bit;
sbit SPExpanderRST_Direction at TRISF0_bit;
sbit SPExpanderCS_Direction at TRISF1_bit;
// End Port Expander module connections
It is possible to use this lib with multiple port expander?
How?
TnKS in advance