예제 #1
0
        seq1.addFrame(mario_ss, "mario1", duration_ms=dur)
        seq1.addFrame(mario_ss, "mario2", duration_ms=dur)
        seq1.addFrame(mario_ss, "mario3", duration_ms=dur)
        seq1.addFrame(mario_ss, "mario2", duration_ms=dur)
        seq1.addFrame(mario_ss, "mario1", duration_ms=dur)
        seq1.addFrame(mario_ss, "mario2", duration_ms=dur)
        seq1.addFrame(mario_ss, "mario3", duration_ms=dur)
        seq1.addFrame(mario_ss, "mario2", duration_ms=dur)
        seq1.addFrame(mario_ss, "mario1", duration_ms=dur)
        seq1.addFrame(mario_ss, "mario2", duration_ms=dur)
        seq1.addFrame(mario_ss, "mario3", duration_ms=dur)
        seq1.addFrame(mario_ss, "mario2", duration_ms=dur)
        seq1.addFrame(mario_ss, "mario1", duration_ms=dur)
        seq1.addFrame(mario_ss, "mario2", duration_ms=dur)
        seq1.addFrame(mario_ss, "mario3", duration_ms=dur)
        seq1.addFrame(mario_ss, "mario2", duration_ms=dur)
        seq1.addFrame(mario_ss, "mario1", duration_ms=dur)
        seq1.addFrame(mario_ss, "mario2", duration_ms=dur)
        seq1.addFrame(mario_ss, "mario3", duration_ms=dur)
        seq1.addFrame(mario_ss, "mario2", duration_ms=dur)
        seq1.addFrame(mario_ss, "mario1", duration_ms=dur)
        seq1.addFrame(mario_ss, "mario2", duration_ms=dur)
        seq1.addFrame(mario_ss, "mario3", duration_ms=dur)
        seq1.addFrame(mario_ss, "mario2", duration_ms=dur)

        grid = Ledgrid()
        grid.showSequence(seq1, printinfo=False)
        grid.clear()
        grid.close()
        sys.exit(0)
예제 #2
0
        seq2.addFrame( frogger_ss, 'explode2', duration_ms=dur )
        seq2.addFrame( frogger_ss, 'explode3', duration_ms=dur )

        seq3 = AnimationSequence("seq3")
        seq3.addFrame( frogger_ss, 'skull1', duration_ms=dur )
        seq3.addFrame( frogger_ss, 'skull2', duration_ms=dur )
        seq3.addFrame( frogger_ss, 'skull3', duration_ms=dur )
        seq3.addFrame( frogger_ss, 'skull4', duration_ms=dur )
        seq3.addFrame( frogger_ss, 'racecar1', duration_ms=dur )
        seq3.addFrame( frogger_ss, 'racecar2', duration_ms=dur )
        seq3.addFrame( frogger_ss, 'alligator_orange_headopen1', duration_ms=dur )
        seq3.addFrame( frogger_ss, 'alligator_orange_headopen2', duration_ms=dur )
        seq3.addFrame( frogger_ss, 'FrogStanding1', duration_ms=dur )
        seq3.addFrame( frogger_ss, 'FrogStanding2', duration_ms=dur )
        seq3.addFrame( frogger_ss, 'FrogStanding1', duration_ms=dur )
        seq3.addFrame( frogger_ss, 'FrogStanding2', duration_ms=dur )
        seq3.addFrame( frogger_ss, 'FrogStanding1', duration_ms=dur )
        seq3.addFrame( frogger_ss, 'FrogStanding2', duration_ms=dur )
        seq3.addFrame( frogger_ss, '100pts', duration_ms=dur )
        seq3.addFrame( frogger_ss, '200pts', duration_ms=dur )

        grid = Ledgrid()
        grid.showSequence( seq1, printinfo=True )
        grid.showSequence( seq1, printinfo=True )
        grid.showSequence( seq1, printinfo=True )
        grid.showSequence( seq2, printinfo=True )
        grid.showSequence( seq3, printinfo=True )
        grid.clear()
        grid.close()
        sys.exit(0)
예제 #3
0
        seq5 = AnimationSequence("seq5")
        dur = 250
        seq5.addFrame( mrspacman_ss, '200pts',                      duration_ms=dur )
        seq5.addFrame( mrspacman_ss, '400pts',                      duration_ms=dur )
        seq5.addFrame( mrspacman_ss, '800pts',                      duration_ms=dur )
        seq5.addFrame( mrspacman_ss, '1600pts',                     duration_ms=dur )

        seq6 = AnimationSequence("seq6")
        dur = 150
        seq6.addFrame( mrspacman_ss, 'ghost_invisible_eyes_up',     duration_ms=dur )
        seq6.addFrame( mrspacman_ss, 'ghost_invisible_eyes_down',   duration_ms=dur )
        seq6.addFrame( mrspacman_ss, 'ghost_invisible_eyes_left',   duration_ms=dur )
        seq6.addFrame( mrspacman_ss, 'ghost_invisible_eyes_right',  duration_ms=dur )

        grid = Ledgrid()
        for i in range(4):
            grid.showSequence( seq1, printinfo=False )
        for i in range(2):
            grid.showSequence( seq2, printinfo=False )
        for i in range(1):
            grid.showSequence( seq3, printinfo=False )
        for i in range(1):
            grid.showSequence( seq4, printinfo=False )
        for i in range(1):
            grid.showSequence( seq5, printinfo=False )
        for i in range(3):
            grid.showSequence( seq6, printinfo=False )
        grid.clear()
        grid.close()
        sys.exit(0)