PIC16877A CCS how to make the program will only printf 1?
Posted: Fri Nov 11, 2011 8:44 pm
PIC16877A CCS how to make the program will only printf 1 time?
I wish to make the code below will only execute "printf" one time. How should I edit the code below ?
thanks
printf("\fPL available:3");
delay_ms(1000);
done=TRUE;
}
} while (!done);
So the loop exits, when 'done' goes TRUE.
If this is the main, the chip will drop through to a hidden 'sleep' after the code, and stop running. Otherwise add whatever else you want to happen here.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum