I have also got 4 leds which i want to randomly flash is there any way of achieving this?
Regards,
Pete.
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Tue Apr 15, 2008 4:20 pm
Look at the sample code in this thread. It shows how to use some if()
statements to check if the random number is in a certain range. If it is,
then a specified function is called. If it's within a different range, then
a different function is called. Etc.
http://www.ccsinfo.com/forum/viewtopic.php?t=34212
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