Closed FZDSLR closed 3 months ago
FYI, ArduinoCore-API docs don't apply here at all, the core uses it's own format
So it'll expect
/* Input + Pull-Up, Interrupt, triggering on Rise or Fall */
attachInterrupt(interruptPin, GPIO_Mode_IPU, &blink, EXTI_Mode_Interrupt, EXTI_Trigger_Rising_Falling);
I have reserved interfaces for events or interrupts and triggering modes(rising edge, falling edge, or both), This is more flexible, and in fact, it does lose compatibility.
Expected Behavior
According to the documentation and Arduino core api , the function
attachInterrupt()
should accept params like(pin_size_t interruptNum, voidTemplateFuncPtrParam<T> userFunc, PinStatus mode, T& param)
, andattachInterrupt(digitalPinToInterrupt(interruptPin), blink, CHANGE)
should be OK.Current Behavior
Err occurs when compiling:
Possible Solution
Steps to Reproduce
compiling the program:
Context (Environment)