Results 1 to 3 of 3

Thread: Blink

  1. #1
    Andras Kozma
    Guest

    Blink

    Hi,
    Could anyone help me by telling how I could make a variable in PMSystems
    'blink' in a 1 sec on, one sec off sequence?

    Andras


  2. #2
    Enrico Schiratti
    Guest

    Re: Blink

    Hi,

    something like this should do the trick (I used 5 seconds to make it
    clearer):

    blinkcounter = blinkcounter + elapsed
    //increments counter with the amount of time that elapsed since last
    check
    if blinkcounter > 5 // five seconds elapsed
    blinker = 1 - blinker // switches blinker to 1 or 0 respectively
    blinkcounter = 0 // resets counter
    endif

    "blinker" should do this every 5 seconds... 0 1 0 1 0 1 0 1 etc... and would

    need an offset of its own

    Ciao

    Enrico

    "Andras Kozma" wrote in message
    news:280787.55820@wb.onvix.com...
    > Hi,
    > Could anyone help me by telling how I could make a variable in PMSystems
    > 'blink' in a 1 sec on, one sec off sequence?
    >
    > Andras
    >



  3. #3
    Andras Kozma
    Guest

    Re: Blink

    Hi Enrico,

    > "blinker" should do this every 5 seconds... 0 1 0 1 0 1 0 1 etc... and
    > would need an offset of its own


    That sounds wonderful, many thanks.
    But the main question is: how can I define my own offset? Is it possible at
    all?

    regards
    Andras


Similar Threads

  1. FireFox and MyCockpit on the blink
    By ekezz in forum MyCockpit News and Announcements
    Replies: 0
    Last Post: 03-25-2007, 03:27 PM