const int LED = 13 ; // 13 is < 256, byte would be enough
With an 8 bit MCU I would think using byte would be better
Using byte is generally better. Typing byte, instead of int, requires 33% more effort.
My question is: is there a drawback in using byte rather than int or, putting it in another way, an advantage using int instead of byte when byte is enough?
And using #define led 13 uses zero bytes.
Quote from: PaulS on Nov 22, 2012, 06:09 pmUsing byte is generally better. Typing byte, instead of int, requires 33% more effort.And using #define led 13 uses zero bytes.
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16