Bonsoir Skywodd,
Problème de compréhension code :
/* Enable PCF8574 interrupts, use pin D8 as "INT" pin and ISRgateway() as callback function */
expander.enableInterrupt(8, ISRgateway);
On utilise bien la pin D8 de la carte Arduino?
Le code de enableInterrupt :
#ifdef PCF8574_INTERRUPT_SUPPORT
void PCF8574::enableInterrupt(uint8_t pin, void (*selfCheckFunction)(void)) {
Serial.println(">enableInterrupt");
/* Store interrupt pin number */
_pcintPin = pin;
/* Setup interrupt pin */
#if ARDUINO >= 100
pinMode(pin, INPUT_PULLUP); //****<----
#else
pinMode(pin, INPUT);
digitalWrite(pin, HIGH);
#endif
Dans ce cas :
pinMode(pin, INPUT_PULLUP); //****<----
Le pinMode est celui de PCF8574.cpp et non celui de la carte Arduino
Je pense que cette siutation doit perturber le programme ou pas ?
@+