I seguente programmino:
void setup() {
uint8_t pinArray[] = {0, 1, 2, 3, 8, 12, 13, 15, 16, 17, 18, 19};
uint8_t pinIndex = 0;
uint8_t pin = 0;
delay ( 500 );
Serial.begin ( 115200 );
while ( !Serial ) delay ( 100 );
for ( pinIndex = 0; pinIndex < 12; pinIndex++ ) {
pin = pinArray[pinIndex];
auto irq = getPinCfgs ( pin , PIN_CFG_REQ_INTERRUPT );
if ( 0 == irq[0] ) continue;
Serial.print ( "IRQ value for pin " );
Serial.print ( pin );
Serial.print ( ": " );
Serial.println ( GET_CHANNEL ( irq[0] ) );
}
}
void loop() {
// put your main code here, to run repeatedly:
}
... ti restituisce il IRQ in funzione del pin. ![]()
Guglielmo