Hello,
I have been trying to use PwmIn - An interface to read a PWM input signal, using In… | Mbed this PWMin library but it does not work for me. When I take a look at the .cpp file this comes up:
does anyone know why?
Hello,
I have been trying to use PwmIn - An interface to read a PWM input signal, using In… | Mbed this PWMin library but it does not work for me. When I take a look at the .cpp file this comes up:
does anyone know why?
Hello,
the compiler is telling you what is wrong, the number of arguments in methods fall
and rise
of InterruptIn - API references and tutorials | Mbed OS 6 Documentation
The library is old more than 10 years and some things in MbedOS were changed. So how you can see in the API IterruptIn, the methods fall
and rise
accept only callback as an argument.
Lines 26 and 27 will look like this
_p.rise(callback(this, &PwmIn::rise));
_p.fall(callback(this, &PwmIn::fall));
Here is updated version but I not tested it, you will see.
PwmIn - Fork of https://os.mbed.com/users/simon/code/PwmI… | Mbed
BR, Jan