PaulS,
Thanks very much.
I had nearly got what you said in your post. But with minor variations.
It is sort of re-assuring that I had come up with similar to what you suggested at the same time.
Mine is slightly different, but I think I will change it to how you said as it is better.
This is the block of code now:
void DISPLAY_TIME(int time)
{
int d1;
int d2;
{
d2 = time % 10;
d1 = int(time/10);
}
digitalWrite(D1_Select,HIGH);
display_number(d1);
digitalWrite(D2_Select,HIGH);
display_number(d2);
if (time = 0)
{
// Turn off the display.
digitalWrite(D1_Select,LOW);
digitalWrite(D2_Select,LOW);
}
return; // Needed?
}
//==================================================================
int display_number(int digit)
{
if (digit == 0)
{
digitalWrite(Di1,LOW);
digitalWrite(Di2,LOW);
digitalWrite(Di3,LOW);
digitalWrite(Di4,LOW);
}
if (digit == 1)
{
digitalWrite(Di1,HIGH);
Right?
Oh, is that return needed?
Boguz,
Yes, I have a Canon 550d.
I have just got and installed Magic Lantern. Kind of overwhelming.
You may want to look at Trigger Trap too. I am waiting for their new version. (NOT the App.)
This is a kind of "in between" thing for me which is camera independent.
I'll PM you soon with some of the piccies.