Boe-Bot Beginner Question on Code
In the manual, page 56, it asks me to run this code:
Do
·· PULSOUT 13, 65000
·· PULSOUT 12, 65000
·· PAUSE 2000
Loop
Pin 12 and 13 each have a simple LED + Resistor circuit. The manual says to "verify that both LED circuits simultaneously pulse". But they are ALTERNATIVELY pulsing. One LED blinks, goes out,·then the next blinks, then a 2 second pause. Is this correct, or should they both be lighting at the SAME time? I know logically the programming has to complete the tasks in order before moving on, but the inconsistency in the manual and what I see is odd. How could I get both to light at the same time? I know we will be using this same format to drive the servos, so it kind of bothers me that one servo might start a fraction of a second before the other.
Thank you!
Do
·· PULSOUT 13, 65000
·· PULSOUT 12, 65000
·· PAUSE 2000
Loop
Pin 12 and 13 each have a simple LED + Resistor circuit. The manual says to "verify that both LED circuits simultaneously pulse". But they are ALTERNATIVELY pulsing. One LED blinks, goes out,·then the next blinks, then a 2 second pause. Is this correct, or should they both be lighting at the SAME time? I know logically the programming has to complete the tasks in order before moving on, but the inconsistency in the manual and what I see is odd. How could I get both to light at the same time? I know we will be using this same format to drive the servos, so it kind of bothers me that one servo might start a fraction of a second before the other.
Thank you!
Comments