mtongnz / ESP8266_ArtNetNode_v2

ESP8266 based WiFi ArtNet to DMX, RDM and LED Pixels
GNU General Public License v3.0
606 stars 158 forks source link

Simple DMX receiving function to act a Wemos as a node #116

Open bairlin opened 5 years ago

bairlin commented 5 years ago

Hi!

I need some help... Is there any chance to get this library working to receive DMX input only? Or to get information how to use the library espDMX_RDM as a simple DMX node/receiver?

I have created a sketch for controlling WS2812B LEDs via DMX. So, a Wemos D1 mini is a DMX node/receiver which shall be controlled by a DMX Mixer. I´d like to receive a DMX signal and the Wemos to act as a node to control the WS2812B strip. I integrated the WS2812FX Library offering many effects. So, my work is close to the FX part within this project here.

This library here is the only library I found to be able to handle DMX receiving function...

Maybe there could be some example for sending DMX and also receiving DMX for integrating into own projects?

I hope there is a chance to get the receiving part running and I am looking forward to any help for this! Thank you so much in advance!!

julienhogert commented 5 years ago

Same for me ! I'm trying to send DMX values with a Serial connection and don't find a way to receive it. Looking at the code, I tried this:

`#include

include

byte dmx[512]; byte* dataIn;

void setup() { ecran.setup(); dmxA.begin(); dmxA.dmxIn(true); }

void print_s(int v){ sprintf(ecran.buf, "REC. \n %i",v); ecran.print_buf(); }

void loop() { dmxA.handler(); dataIn = dmxA.getChans(); dmx[0]=dataIn[0]; print_s(dmx[0]); }` the print_s() function is just to print on a screen. It doesn't work. How can I do? I use a Wemos D1 with a screen shield. Thanks. Julien