Shop OBEX P1 Docs P2 Docs Learn Events
LEDs — Parallax Forums

LEDs

Hi there,
I am a beginner in Robotic class.
I mean how I can program three LEDs turn sequence ( LED1 turn on ,after LED2 turn on,LED3 turn on, and after LED3 turn off, the circuit will be shout down ) .
1st step:
LED 1 turn on for 20's after turn off
2nd Step
LED2 turn on for 20's after turn off as well but the LED2 will be on 20's after LED1 turn off.
3rd Step
LED3 turn on for 20's after turn off as well but the LED3 will be on 20's after LED2 turn off.
LED3 turn off and the circuit will cut off.

Please, help!

Comments

  • Cool, a robotics class. I wish I had taken one when I was young.

    How's your assignment coming along?

    It looks a like a pretty straight forward one. If you run into trouble post your code using code tags (click the "C" icon to add these tags).

    Explain what happens when you run the code and how this compares with what you thought the code would do.

    Good luck.
  • I got the idea that the OP really didn't know where to start.

    I would begin with the LedOnOff.bs2 in https://parallax.com/downloads/whats-microcontroller-text. Turn one Led on and off and then expand the program to do all three.
Sign In or Register to comment.