Just have a query about how 'int' is handled in libraries with overloaded functions, which are to be used on Arduino boards where some handle the 'int' as 16bit and some handle the int as 32bit.
What is the normal method for handling this?
We have a library we are writing which we have a function which is overloaded, each taking a parameter of int16_t, int32_t and float, and the compiler (in this case for the Pi Pico) doesn't know where to assign the int that is going into the function, to which overloaded function etc.
Typecasting the input to int32_t works, but I am just curious about what is the normal practice for handling this type of thing for libraries which support many Arduino boards which handle the type 'int' differently.
I hope that makes sense