Results 1 to 4 of 4

Thread: Plz help an architecture student

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2008
    Posts
    3

    Plz help an architecture student



    I have 20 RGB leds on a PhidgetLed 64.
    Basically it acts as 60 leds and it needs 60 different commands to light.
    I want to make a customizable time line. And a timer to make it work.

    So far I can do all the commands I need. I can manually do what I want to do.
    I can also change the timer intervals with a slider.

    How can I put multiple commands in a phase? How can I bundle multiple commands under one name?

    Any idea is greatly Appreciated..
    Thank You
    Last edited by polat; Mar 9th, 2008 at 08:29 PM.

  2. #2

    Thread Starter
    New Member
    Join Date
    Mar 2008
    Posts
    3

    Re: Plz help an architecture student

    Or without any interface to be more simple?

    Code:
    Dim I As Integer
    
    Phase1
    dothis
    dothat
    
    ....
    
    Phase65
    dosomething
    dosomethingelse
    
    Private Sub Timer1_Timer()
    
    Phase(I) execute
        I = I + 1
        
    End Sub
    I really need this for my final project's scale model...
    Please help meeee!!

  3. #3
    Frenzied Member
    Join Date
    Jun 2006
    Posts
    1,098

    Re: Plz help an architecture student

    You'll need an array to store all of the 'commands' for all of the phases. I'm guessing this is simply Byte data for RGB values. So if, for example, you had 5 phases, you'd need an array with 300 elements (0 to 299). The first phase would use (0 to 59), the second would use (60 to 119), and so on. It's easy to get the indexes you need for any given phase. Simply multiply the phase number by 60 to get the low index, then add 0 to 59 in a loop. (The first phase should be 0)

  4. #4

    Thread Starter
    New Member
    Join Date
    Mar 2008
    Posts
    3

    Re: Plz help an architecture student

    Thank you very much..

    Trying to swallow..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width