Пример #1
0
def laser_loop(q):
    import LaserDisplay
    from LaserDisplay.SvgProcessor import SvgProcessor

    LD = LaserDisplay.create()

    LD.set_scan_rate(30000)
    LD.set_blanking_delay(0)

    sp = SvgProcessor(LD)
    svg = None

    while True:
        if not q.empty():
            svg = q.get()
        if not svg is None:
            sp.parseString(svg, 255.0/595.0)
            LD.show_frame()
            time.sleep(1.0/25.0)
Пример #2
0
def laser_loop(q):
    import LaserDisplay
    from LaserDisplay.SvgProcessor import SvgProcessor

    LD = LaserDisplay.create()

    LD.set_scan_rate(30000)
    LD.set_blanking_delay(0)

    sp = SvgProcessor(LD)
    svg = None

    while True:
        if not q.empty():
            svg = q.get()
        if not svg is None:
            sp.parseString(svg, 255.0 / 595.0)
            LD.show_frame()
            time.sleep(1.0 / 25.0)
Пример #3
0
#!/usr/bin/env python

import sys
import LaserDisplay
from LaserDisplay.SvgProcessor import SvgProcessor

if len(sys.argv) < 2:
    print 'Usage: showsvg filename.svg'
    sys.exit(1)

LD = LaserDisplay.create()

LD.set_scan_rate(30000)
LD.set_blanking_delay(0)

sp = SvgProcessor(LD)

while True:
    sp.parseFile(sys.argv[1])
    LD.show_frame()
Пример #4
0
#!/usr/bin/env python

import sys
import LaserDisplay
from LaserDisplay.SvgProcessor import SvgProcessor

if len(sys.argv) < 2:
    print "Usage: showsvg filename.svg"
    sys.exit(1)

LD = LaserDisplay.create()

LD.set_scan_rate(30000)
LD.set_blanking_delay(0)

sp = SvgProcessor(LD)

while True:
    sp.parseFile(sys.argv[1])
    LD.show_frame()