Increase flash memory Arduino UNO

robtillaart:
many programs can be coded more efficiently, e.g. by removing all float math from it

Is you code (partial) reviewed to see if it can be optimized?

while writing a program for my uno i found i can use 0 for low and 1 for high so eliminating 5 letters does not sound like much but take a blinking led for example that is 10 letters less you need to use

so instead of

digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(13, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second

you use

digitalWrite(13, 1); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(13, 0); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second

it may be possible to use variables so you dont have to repeat so much.