just for giggles
byte Light_toggle(byte fctn)
{
if(!fctn) return Light_status;
else
{
Light_status = (++Light_status) % 2;
CS.digitalWrite(1, Light_status);
}
sleep_time(10,1);
}
Are there any known pros and cons to either way?
if they both work the same, the second one is slightly shorter to write, maybe if you sat down and clock it it might be a few cycles faster which can help in large/complex programs