Thanks to you, I've changed (not all yet) some 'Int' to 'uint8_t'... result... my sketch length on Mega 2560:Before was ~133000 bytes Now is ~113000 bytes!!!Amazing!
After replace variables 'Int' 616 times by 'uint8_t' my sketch reduced from 132146 bytes to 113890 bytes using arduino.exe compiler!
Sounds well worth it. Does it still work? I'd be very nervous about the possibility for tricky bugs to arise if you didn't carefully consider the range of expected values for each int you replaced.
some vars that have value '-1'
Quotesome vars that have value '-1' You can use "char" instead of "byte".The char type can hold numbers in the range -128 to +127.
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