How to convert macros for Arduino code?
Is it a good idea to turn those macros into functions?


it depends.

macros are fast, but lack type checking.

functions offer type checking but incur overhead.

whether one is better than the other depends on your priorities.