Modified canbus receive interrupt example

This commit is contained in:
wangcoolc
2020-12-07 19:18:05 +08:00
parent fd6ff3ed33
commit db678419c4
@@ -34,7 +34,7 @@ void setup() {
delay(100);
}
SERIAL.println("CAN BUS Shield init ok!");
pinMode(CAN_INT_PIN, INPUT);
attachInterrupt(digitalPinToInterrupt(CAN_INT_PIN), MCP2515_ISR, FALLING); // start interrupt
}