In SX Microcontrollers, SX/B Compiler and SX-Key Tool, PJMonty wrote: Spragmatic, What is your level of programming experience? Have you ever written any code, or is this your first project? Your specifications already tell you what you need to do. Look at what you wrote: 1 - [b]LEDs that fade in and out.[/b] Okay, you need to write some PWM code to control the brightness of the LEDs and let you fade them in and out. 2 - [b]Randomly.[/b] You need a random number generator. Have you looked in the help file to see if SX/B has a random number generator? IF so, then use it. IF not, then search the forums for anyone who has written a random number generator. 3 - [b]Do this when switches are tripped.[/b] That's a switch, a pullup resistor, and reading an input. If you have no experience, then start with reading a switch. If you already know how to do that, then start on the random number issue followed by the PWM code. Both should be located on the forum in other postings. Thanks, PeterM ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=313149#m313199 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)