Thanks guys problem solved. ![]()
billroy:
I wonder if it generates less code to replace all those calls with calls to a function to do the dereference:// global LED control function
void setLed(byte led, byte lohi) {
digitalWrite(Leds[led], lohi);
}
// replace all digitalWrite(Leds[0], LOW); with:
setLed(0, LOW);
It would be easy to try on a few cases to see what the space impact is.
I also tried this out, but it only saved me about 20 bytes...