Skip to content

DmxPy test programme issue #2

@philarnaud

Description

@philarnaud

Hello Sir DavePaul,
I have installed your DmxPy on Raspbian (simulation of a RaspBerry PI on a VirtualBox on my PC.
When I connect usb DMX key (Emtec), I can see "usb 1-1.4: FTDI USB Serial Device converter now attached to ttyUSB0. So I use /dev/ttyUSB0.

Then I run python dmxpytest.py with follwing contents:
python dmxpytest.py (here after)

  • It start for half a second and come back to command line
  • Red led on adaptater is blinking twice then come back to black
  • Par led is flashing half a second in Red Green.
  • it seems that delay is not taken into account to wait between the 2 effects!

Do you have any idea of what it could be?
Best regards
Philippe

from DmxPy import DmxPy
import time
dmx = DmxPy('/dev/ttyUSB0')
dmx.setChannel(4, 255) <- I have a small PAR LED RGBW Channel 4 is light intensity
dmx.setChannel(5, 255) < is RED intensity
dmx.render()
time.sleep(2)
dmx.setChannel(6, 255) < is GREEN intensity
dmx.render()
time.sleep(2)
dmx.blackout()
dmx.render()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions