Interrupts JAL

Discussion in 'Programmer's Corner' started by tommyBE, Mar 22, 2011.

  1. tommyBE

    Thread Starter New Member

    Mar 22, 2011
    1
    0
    hi all

    i have a 5x5 led cube that works fine with this code:

    var byte counter = 0
    forever loop

    ; Toon figuur
    for 10000 loop
    showLayers(counter)
    end loop

    counter = counter + 1
    if counter == MAX_FIG then
    counter = 0
    end if
    end loop


    So every 10000 loops a new 'cube' is loaded and shown for another round of loops. I want to get rid of these loops and use interrupts to load the new state but I haven't got a clue how to do this. I'm fairly new to JAL but a well-explained example would help a great deal.
    I need timed interrupts. I can change the number of loops but every cube needs a different amount of time when i use these loops. Thanks in advance...
     
Loading...