Shop OBEX P1 Docs P2 Docs Learn Events
Blink problem — Parallax Forums

Blink problem

bluejaybluejay Posts: 131
edited 2012-11-26 20:18 in BASIC Stamp
Would somebody please tell me why when I turn a simple led on my Stamp2 blink blinks every few seconds? Is it a common problem? Can I put a code to stop it on my initial program? This problem does not occur when there is a loop in the coding. I would appreciate a response.

Comments

  • Tracy AllenTracy Allen Posts: 6,664
    edited 2012-11-26 08:29
    Your program is going into sleep mode. The Stamp wakes up every couple of seconds and pins that are set as outputs briefly (~18ms) change to inputs.

    You can put a STOP command at the end of your program and it will keep running. Or a program loop
    DO : LOOP
    It won't go to sleep.
  • bluejaybluejay Posts: 131
    edited 2012-11-26 09:03
    Thanks Tracy. Someone suggested that I add this coding which also works.

    'example

    HIGH 15
    The_end
    GOTO The_end
  • ercoerco Posts: 20,257
    edited 2012-11-26 20:18
    bluejay wrote: »
    Thanks Tracy. Someone suggested that I add this coding which also works.

    'example

    HIGH 15
    The_end
    GOTO The_end

    That will not work as typed. This, however, does:

    HIGH 15
    blazes:
    GOTO blazes

    That little colon identifies any alphanumeric string as a label.
Sign In or Register to comment.