bitbyt3r / dmx Goto Github PK
View Code? Open in Web Editor NEWSimple DMX driver using an RS485 adapter
License: MIT License
Simple DMX driver using an RS485 adapter
License: MIT License
I found that os detection does not work for Mac OS.
Please use:
import platform
if platform.system() == "Linux":
import fcntl
def sender(self):
while True:
if not(self.enabled):
continue
if platform.system() == "Linux":
fcntl.ioctl(self.desc, 0x5427) # Yeah, it's magic. Start Break (TIOCSBRK)
time.sleep(0.0001)
fcntl.ioctl(self.desc, 0x5428) # Yeah, it's magic. End Break (TIOCCBRK)
else:
self.ser.send_break(0.0001)
https://docs.python.org/3.8/library/platform.html
I tried to use a pull request, but it was to cumbersome.
Thanks for the code, it works for me, but with changes merged to master for OS detection, it easier to use.
I am a mac and linux user :)
Chears Peter
I got one of those cheap modules, and tried to connect it to a raspberry pi 3b. I see the light on the board flashing, but the dmx light isnt responding. The light just blinks with the display, as if there isnt any valid dmx signal coming in.
To check if the dmx module worked, I tried the kmtronic.com DMX Tester on Windows 10, and it worked fine.
Heading back to the raspberry pi, and I again can't get it to work. Using the test.py file to test.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.