even if i dont use this function it always uses 4 bytes of ram if the function is implemented in the cpp (because of the attachInterrupt()). If i make it inline in the .h it doesnt compile anything
.h
// attach the interrupt function
void IRLbegin(const uint8_t interrupt);
.cpp
void IRLbegin(const uint8_t interrupt){
// attach the function that decodes the signals
attachInterrupt(interrupt, IRLinterrupt, CHANGE);
}
What can i do against that? writing everything in the .h isnt good coding style i think. I cannot change optimization settings due to Arduino environment.