20 March 2010
LED PROJECT software revisited using functions(2)
Adding the code:
void onFor50(int lPin)
{
digitalWrite(lPin, HIGH); // turn LED on
delay(50*dLay); // delay 500 milliseconds
}// onFor50()
& replacing with e.g. onFor50(bluLedPin);
got the code down to 1382 bytes, another 20 bytes less
Subscribe to:
Post Comments (Atom)
well now it really IS time i buggered off
ReplyDelete(don't stress - it's been on tv! YAY Toyota)