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

Status Leds #136

Open screwy39 opened 3 years ago

screwy39 commented 3 years ago

Hi, fantastic project.

Not so much an issue but possibly an addition unless I've over looked it or cant get it to work. On the original version the 2 status leds did a combination of flashes depending wifi/dmx status. In V2 with my limited coding abilities I believe it looks like there are 2 options depending on which is uncommented. 1 the WS2812 or 2 the APA106. Is that right? I am using a esp8266 01 would it be possible to have a 3rd option of the single led flashing as in the original? I just want to use it as a basic dmx out. Thanks

LoneWalkerWolf commented 1 year ago

Feel free to email me at alexander@expanseelectronics.com. I have unofficially taken over this project, as Matt seems to be offline / not contributing to this project anymore. We sell a version of this project on our website: expanseelectronics.com, and you are free to send us an email at any time with any further questions.

In response to your question: Unfortunately, there isn't a way to do this simply. You'd have to modify espDMX_RDM.cpp and espDMX_RDM.h to include this feature. In the V1 project, this is achieved using these lines of code:

      if (dmx->ledPin != DMX_NO_LED) {
        if (dmx->led_timer++ >= 2) {
          analogWrite(dmx->ledPin, dmx->ledIntensity);
          dmx->led_timer = 0;
        }else
          analogWrite(dmx->ledPin, 0);
      }

However, in this V2 version, these lines are omitted from the configuration file. You'd have to add these in manually and change a lot of code for this to work.

I hope this answers your question!